Visual Studio Code's Zen coding HTML comment

313 views Asked by At

In Visual Studio Code, is there a way to insert an HTML comment, like

<!-- something here -->

just like you can insert a div tag with a class of "foo" by doing:

div.foo + [TAB]

That results in

<div class="foo"></div>
2

There are 2 answers

0
rsan On BEST ANSWER

In the latest versions the 'c' character is transformed into a comment.

0
Yves Tkaczyk On

Not that I know of. cc:ie and cc:noie are the closest I know of for comments but this is not what you want.