解决SublimeCodeIntel回车换行误打代码

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 }
        ]
    },
]
复制代码

以上就配置完毕了.

原文地址:https://www.cnblogs.com/liu-ke/p/4826097.html