Sublime 3切换注释命令在Windows中不起作用

Fun*_*end 22 keyboard-shortcuts preferences sublimetext3

我编辑了文件Preferences> Key Bindings User,并添加了这个:

[
  { "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } },
  { "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } }, 
]
Run Code Online (Sandbox Code Playgroud)

但快捷方式不起作用.什么地方出了错?

Fun*_*end 42

我解决了我的问题:

[
    { "keys": ["ctrl+keypad_divide"], "command": "toggle_comment", "args": { "block": false } },
    { "keys": ["ctrl+shift+keypad_divide"], "command": "toggle_comment", "args": { "block": true } },   
]
Run Code Online (Sandbox Code Playgroud)

只需用'keypad_divide'替换'/'

  • 为我工作。谢谢! (2认同)

And*_*rea 14

适用于我,使用QWERTY(意大利语)键盘,其/高于数字7.

添加首选项>键绑定用户

{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } }
Run Code Online (Sandbox Code Playgroud)

它也适用于德国QWERTZ键盘.