Reputation: 5379
I'm aware of the shortcut (Mac) CMD+/ to comment out (HTML style) a line. Is there a shortcut or a way of doing the following. When I press a keybinding, the comment tags are inserted where the cursor is and the cursor gets moved inside the tags to write a comment (x):
<!-- x -->
Upvotes: 0
Views: 1630
Reputation: 416
Select the code you want to comment out and press Ctrl (or Command) + /
Upvotes: 0
Reputation: 1083
Try inserting two hyphens and pressing TAB. It should expand to a full comment block with the cursor inside. It is a snippet.
Upvotes: 1