Sublime 3 toggle comment command doesn't work in Windows
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'
This works for me, with a QWERTY (Italian) keyboard, where the /
is above the number 7
.
Add in Preferences > Key Bindings User
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } }
It should works good on German QWERTZ keyboard also.
This worked for me on Windows 10:
{ "keys": ["control+keypad_divide"],"command": "toggle_comment", "args": {"block": false} },
{ "keys": ["shift+control+keypad_divide"],"command": "toggle_comment", "args": {"block": true}}