关于Sublime Text3的emmet插件和tab快捷键冲突问题

当使用Sublime text3时会遇到快捷键冲突的问题,其中就有安装Emmet之后,tab无法缩进了, 网上有些说看看Browse Packages目录下是否有PyV8插件安装,该插件一般情况下随Emmet安装的,但不排除网络问题安装失败。这是第一步,

第二,以上两个插件都正常安装后,tab键仍然无效, 此时需要在 Preference -> Key Bindings ,在右侧中括号内添加以下代码, 

  之前自己挖了个坑,把代码添加到了 Perference -> package settings -> emmet -> key bindings user内,如此是无法解决问题的。

  最后,最好重启下sublime。

 1 { "keys": ["tab"], "command": "expand_abbreviation_by_tab",
 2   "context": [
 3     {
 4       "operand": "source.js", 
 5       "operator": "equal", 
 6       "match_all": true, 
 7       "key": "selector"
 8     },
 9     {   
10       "key": "selection_empty", 
11       "operator": "equal", 
12       "operand": true,
13       "match_all": true 
14     }
15   ]
16 },
17 { "keys": ["tab"], "command": "next_field", "context":
18   [
19     { "key": "has_next_field", "operator": "equal", "operand": true }
20   ]
21 }
原文地址:https://www.cnblogs.com/hughes5135/p/10095774.html