当使用Sublime text3时会遇到快捷键冲突的问题,其中就有安装Emmet之后,tab无法缩进了, 网上有些说看看Browse Packages目录下是否有PyV8插件安装,该插件一般情况下随Emmet安装的,但不排除网络问题安装失败。这是第一步,
第二,以上两个插件都正常安装后,tab键仍然无效, 此时需要在 Preference -> Key Bindings ,在右侧中括号内添加以下代码,
之前自己挖了个坑,把代码添加到了 Perference -> package settings -> emmet -> key bindings user内,如此是无法解决问题的。
最后,最好重启下sublime。
{ "keys": ["tab"], "command": "expand_abbreviation_by_tab",
"context": [
{
"operand": "source.js",
"operator": "equal",
"match_all": true,
"key": "selector"
},
{
"key": "selection_empty",
"operator": "equal",
"operand": true,
"match_all": true
}
]
},
{ "keys": ["tab"], "command": "next_field", "context":
[
{ "key": "has_next_field", "operator": "equal", "operand": true }
]
}