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?
The shortcut to comment out or uncomment the selected text or current line: Windows: Ctrl + / Mac: Command ⌘ + / Linux: Ctrl + Shift + /
In Sublime Text 2 it was possible to comment out a line or a block of lines with Ctrl + / and Ctrl + Shift + / .
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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With