如果一不行就用第二種
方法一
打開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"
}
}]
[
{
"args":
{
"characters": ";"
},
"command": "insert"
}
]