Sublime 3 toggle comment command doesn't work in Windows

Funny Frontend picture Funny Frontend · May 26, 2015 · Viewed 17.6k times · Source

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?

Answer

Funny Frontend picture Funny Frontend · May 26, 2015

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'