Wasteland
Wasteland

Reputation: 5379

Atom code editor - insert html comment

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

Answers (2)

Tristan Newman
Tristan Newman

Reputation: 416

Select the code you want to comment out and press Ctrl (or Command) + /

Upvotes: 0

netizen
netizen

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

Related Questions