by skaet on Thu Sep 01, 2011 2:11 am
This command already exists and is bound to ctrl+/, while ctrl+shift+/ will insert a comment at the caret.
If this keymap isn't suitable, you can add the following commands to your Preferences -> Key Bindings - User file:
{ "keys": ["ctrl+m"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+m"], "command": "toggle_comment", "args": { "block": true } }
ctrl+m and ctrl+shift+m are currently bound to existing commands so you'll have to change the keys value to a mapping of your choice.