自定义键是崇高的

时间:2016-06-14 09:56:44

标签: sublimetext3

我更新了Sublime Text 3,现在我的所有custom Keys都消失了。我尝试重置它们,但它不起作用。

我尝试了Settings User以及Key Bindings User这个:

// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by file type specific settings.
[
     { "keys": ["cmd+shift+c"], "command": "toggle_comment", "args": { "block": false } },
     { "keys": ["cmd+shift+b"], "command": "toggle_comment", "args": { "block": true } },
]

以及

 // Settings in here override those in "Default/Preferences.sublime-settings",
 // and are overridden in turn by file type specific settings.
 {
      "keys": ["cmd+shift+c"], "command": "toggle_comment", "args": { "block": false },
      "keys": ["cmd+shift+b"], "command": "toggle_comment", "args": { "block": true },
 }

没有运气!有什么想法吗?

1 个答案:

答案 0 :(得分:0)

您有两种选择。首先,您可以从旧的Sublime Text 2文件夹(np.array)复制Default (OSX).sublime-keymap并将其放在同一个ST3文件夹(~/Library/Application Support/Sublime Text 2/Packages/User)中。

或者,您可以重新制作键绑定。打开 ~/Library/Application Support/Sublime Text 3/Packages/User 并添加密钥绑定,如下所示:

Sublime Text → Preferences → Key Bindings—User

确保在最后一个条目之后没有尾随逗号[ { "keys": ["cmd+shift+c"], "command": "toggle_comment", "args": { "block": false } }, { "keys": ["cmd+shift+b"], "command": "toggle_comment", "args": { "block": true } } ]