Answer the question
In order to leave comments, you need to log in
How to set up autocomments in Visual Studio Code after closing a tag?
Visual Studio Code version 1.42.0 Expands
when
typed
.comment|c
<div class="comment"></div>
<!-- /.comment -->
<div class="comment">
</div><!-- end.comment -->
"emmet.preferences": {
"filter.commentAfter": "<!--end [#ID][.CLASS] -->"
}
The format for the filter.commentAfter preference is different and simpler in Emmet 2.0.
For example, instead of the older format
"emmet.preferences": {
"filter.commentAfter": "\n<!-- /<%= attr('id', '#') %><%= attr('class', '.') %> -->"
}
you would use
"emmet.preferences": {
"filter.commentAfter": "\n<!-- /[#ID][.CLASS] -->"
}
If you want support for any of the other preferences as documented in Emmet Preferences, please log a feature request.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question