sublime配置 sublimecondeintel 分号后不要提示

时间:2021-11-20 10:56:41

https://github.com/SublimeCodeIntel/SublimeCodeIntel/issues/461

Thanks to @catgsmith ,I find a similar way to solve this problem in Windows:

第一步:在sublimecodelintel中,在user key bindings -user中,添加如下配置.
Select Package Settings > SublimeCodeIntel > Key Bindings - User, and add the following to the Default (Windows).sublime-keymap - User:

{ "keys": [";"], "command": "run_macro_file", "args": {"file": "Packages/User/unAutoSemiColon.sublime-macro"} }

(注意外面还要有一层[   ]包裹两个{})

第二步,新建一个脚本,保存在package的user下
And then Select Preferences -> Browser Packages -> Users,save file unAutoSemiColon.sublime-macro:

[
{
"args":
{
"characters": ";"
},
"command": "insert"
}
]

友情提醒:如果代码提示给出的关键字后面没有(keyword),那么还是无效. 因为上面只是在打完分号后执行脚本,直接智能打出分号,上面脚本不执行.