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中加入以下代码:

解决SublimeCodeIntel回车换行误打代码
[
    { "keys": ["enter"], "context":
        [
            { "key": "setting.auto_complete_commit_on_tab", "operand": true }
        ]
    },
]
解决SublimeCodeIntel回车换行误打代码

以上就配置完毕了.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-09-23
猜你喜欢
  • 2022-12-23
  • 2021-10-09
  • 2021-07-15
  • 2021-05-30
  • 2021-12-13
  • 2022-12-23
  • 2021-07-01
相关资源
相似解决方案