关于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 {
 2     "keys": ["enter"],
 3     "command": "auto_indent_tag",
 4     "context": [
 5     {
 6         "key": "setting.auto_indent",
 7         "operator": "equal",
 8         "operand": true
 9     },
10     {
11         "key": "selection_empty",
12         "operator": "equal",
13         "operand": true,
14         "match_all": true
15     },
16     {
17         "key": "selector",
18         "operator": "equal",
19         "operand": "punctuation.definition.tag.begin",
20         "match_all": true
21     },
22     {
23         "key": "preceding_text",
24         "operator": "regex_contains",
25         "operand": ">$",
26         "match_all": true
27     },
28     {
29         "key": "following_text",
30         "operator": "regex_contains",
31         "operand": "^</",
32         "match_all": true
33     }, ]
34 }

猜你喜欢

转载自www.cnblogs.com/hughes5135/p/10095774.html