how do I add a comment tag in VSCode for HTML using Emmet?

Viewed 3310

How to add a comment tag in HTML using Emmet in VSCode?

What I want: Before:

<div class='abc'>

After using Emmet keyboard shortcut:

<div class='abc'> <!-- -->
2 Answers

Emmet has built-in c abbreviation which outputs comment

On a mac - it is command+option+"right arrow" - allows you to place a comment on a line that already has content.

Related