PhpStorm emmet HTML how to close the automatic comment tag

In PHPSTORM, when I type .classname or #id and press TAB, I got

<div class="classname"></div>

BUT I want it to be:

<div class="classname"></div><!-- .classname -->
+4
source share
3 answers

In the original Emmet, you can use a filter |cto create automatic comments: http://docs.emmet.io/filters/#comment-tags-c

But I do not know if this function is supported by PhpStorm, because it uses its own implementation of Emmet.

+4
source

You can also enable settings filters | Emmet | Default filters: Comment tags = true if you do not want to type |ceach time.

0

As Lewis mentioned, there is a preference that can be set for this. In PhpStorm 2017.3, it can be found under Settings> Editor> Emmett> HTML> Filters by default. See screenshots below.enter image description here

0
source

Source: https://habr.com/ru/post/1537312/


All Articles