Sublime Forum

Is there an alternative key binding command for toggle_comment?

#1

Toggle_comment uncomments a line if it is commented, is there another key binding command that would comment a line even if it is already commented?
I want to do something like this:

{ “keys”: [“alt+c”], “command”: “comment”, “args”: { “block”: false } },
{ “keys”: [“alt+shift+c”], “command”: “uncomment”, “args”: { “block”: false } }

The first should always comment the current line and the second should uncomment the current line if possible

0 Likes