方法一
打开Sublime默认设置文件:
‘Perferences->Package Settings->SublimeCodeIntel->Setting - Defalut’
找到:“codeintel_enabled_languages”: 这一项,把里面的 “HTML” 删掉就可以了。
OK,重启就可以了,完美解决,如果年后编写其他的,去掉对应的语言就好了。
方法二(我找到了没有代码里面,然后用的方法一)
打开Preferences -> Package Settings -> SublimeCodeIntel -> Key Bindings - User
此时,您看到如下配置:
[
{
"keys": [
"tab"
],
"args":
{
"action": "expand_abbreviation"
},
"command": "run_emmet_action",
"context": [
{
"key": "emmet_action_enabled.expand_abbreviation"
}]
}
将其修改为如下所示:
[
{
"keys": [
"tab"
],
"args":
{
"action": "expand_abbreviation"
},
"command": "run_emmet_action",
"context": [
{
"key": "emmet_action_enabled.expand_abbreviation"
}]
},
{
"keys": [";"],
"command": "run_macro_file",
"args":
{
"file": "Packages/User/lfdfhl.sublime-macro"
}
}]
打开Preferences -> Browser Packages -> Users
在该目录下新建文件lfdfhl.sublime-macro
在lfdfhl.sublime-macro文件中保存如下内容:
[
{
"args":
{
"characters": ";"
},
"command": "insert"
}
]
重启Sublime Text 3