解决SublimeCodeIntel回车换行误打代码

来源:互联网 发布:c语言生日快乐 编辑:程序博客网 时间:2024/06/05 11:55
SublimeCodeIntel会自动匹配并联想词汇, 这在换行的时候非常麻烦, 每次点Enter 都会误打出代码,

解决办法分两步:第一步是在Perferences/setting User 中加入

    "auto_complete_commit_on_tab": true,

然后看Perferences/KeyBindings Default中

{ "keys": ["enter"], "command": "commit_completion", "context":        [            { "key": "auto_complete_visible" },            { "key": "setting.auto_complete_commit_on_tab", "operand": false }        ]    },

如上代码是不可以修改的,所以自己在Perferences/KeyBindings User中加入以下代码:

复制代码
[    { "keys": ["enter"], "context":        [            { "key": "setting.auto_complete_commit_on_tab", "operand": true }        ]    },]
复制代码

以上就配置完毕了.

0 0
原创粉丝点击