keyboard-shortcutssublimetext3preferences

Sublime 3 toggle comment command doesn't work in Windows


I've edited the file Preferences > Key Bindings User, and added this:

[
  { "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } },
  { "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } }, 
]

But the shortcuts doesn't work. What went wrong?


Solution

  • I solved my problem:

    [
        { "keys": ["ctrl+keypad_divide"], "command": "toggle_comment", "args": { "block": false } },
        { "keys": ["ctrl+shift+keypad_divide"], "command": "toggle_comment", "args": { "block": true } },   
    ]
    

    Just replace '/' by 'keypad_divide'