Using command + / on an HTML comment results in it being surrounded by a Handlebars comment
Steps:
- Create a template,
template.hbs - Open it in Sublime
- Add a comment with HTML in it:
<!-- <a href="http://moo.cow.com/">Link</a> -->
- Select the comment (from < to >) and press command + /
Result:
Selection is wrapped in Handlebars comment:
{{! <!-- <a href="http://moo.cow.com/">Link</a> --> }}
Expected:
Selection is uncommented:
<a href="http://moo.cow.com/">Link</a>
This is a tricky one, I'm not sure what would be a good way to handle both Handlebars and HTML comments.
Since we're in Handlebars context I'd say Handlebars comments should take precedence and use the ⌘ / ⌃ + / shortcut, but a separate one for HTML comments should probably be available. Maybe ⇧ + ⌘ / ⌃ + /?
Unfortunately ⇧ + ⌘ + / is a global shortcut to opening the Help menu search box, so best not override that =)
Ouch, haven't actually tried pressing the combination before suggesting! :)
⇧ + ⌃ + / seems to be available though? Wonder if it's free on Windows and Linux...
I too vote for prioritizing handlebars comments!