In original Emmet you can use |c
filter to produce automatic comments: http://docs.emmet.io/filters/#comment-tags-c
But I don‘t know if this feature is supported by PhpStorm since it uses its own Emmet implementation.
Question
In PHPSTORM when I type .classname or #id and hit TAB I got
<div class="classname"></div>
BUT I want it to be:
<div class="classname"></div><!-- .classname -->
Solution
In original Emmet you can use |c
filter to produce automatic comments: http://docs.emmet.io/filters/#comment-tags-c
But I don‘t know if this feature is supported by PhpStorm since it uses its own Emmet implementation.
OTHER TIPS
You can also go to Settings|Emmet|Filters enabled by default: Comment tags=true, if you dont want to type |c
each time.