M BUZZ CRAZE NEWS
// news

Why phpstorm don't beautify HTML code?

By John Parsons

I have a list

<ul> <li>item</li>
<li>item</li> <li>item</li>
<li>item</li>
</ul>

When I press code/reformat code in menu, nothing not happened? But this action work for PHP or JavaScript file. How to make the editor format HTML code?

1 Answer

Make sure that <ul> and <li> are not listed in Settings/Editor/Code Style/HTML/Other/Do not indent children of option.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy