我更新了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 },
}
没有运气!有什么想法吗?
答案 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 } }
]
。