Answer the question
In order to leave comments, you need to log in
What is the name of the Visual Studio Code plugin that automatically adds a comment at the end of the closing HTML block with classes and IDs?
Something like this:
<div class="test">
<h1>Какой-то текст</h1>
</div><!-- test -->
Answer the question
In order to leave comments, you need to log in
Emmet's
solution can do this:
Enter
.container|c
Press Tab
<div class="container"></div>
<!-- /.container -->
This can be done with snippets. For example:
{
"div element": {
"scope": "html",
"prefix": "div",
"body": [
"<div class=\"$1\">",
" $2",
"</div><!-- end $1 -->"
],
"description": "commented div"
}
}
{
"commented element": {
"scope": "html",
"prefix": "div", // тут любое сочетание букв, как удобно
"body": [
"<$1 class=\"$2\">",
" $3",
"</$1><!-- end $2 -->"
],
"description": "commented element"
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question