Answer the question
In order to leave comments, you need to log in
How to implement correct html code refactoring in PhpStorm?
The fact is that I use the Pug template engine / preprocessor. And at the exit, he gives me the assembled html page in one line. After that I use Cmd + Option + L and this hotkey copes, but only half. Somewhere there are correct transfers, somewhere wrong. Please tell me, maybe some specific Settings in CodeStyle -> HTML should overcome this problem?
Pug code
Html code, which was assembled after Cmd + Option + L, I would like the h4 tag to be on the same nesting as h3, as in Pug
Answer the question
In order to leave comments, you need to log in
Add --pretty
to Preferences / Settings | tools | File Watchers | Pug | Arguments .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question