Hi, I’d like to set up a keymap to remove HTML comments. Is this possible?
So if I have
and I press CTRL+SHIFT+M
Then I get this
hey there
Hi, I’d like to set up a keymap to remove HTML comments. Is this possible?
So if I have
and I press CTRL+SHIFT+M
Then I get this
hey there
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.