C
C
caseyepsilon2015-03-04 16:35:32
phpstorm
caseyepsilon, 2015-03-04 16:35:32

How to set up html comments in reformat code?

There are many nested divs in html markup, like when using bootstrap. And there is a good recommendation: "mark the closing div with a comment indicating the class of this element" so that you know what closes this div.
For example:

<div class="container">
   ......
</div><!-- container -->

But the problem is that after calling reformat code ( ctrl + alt + l ) phpstorm wraps the comment on a new line.
How and where can I set the pattern in such a way that it keeps the closing div and the comment on the same line?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question