Webstorm - reformat HTML no longer works

I checked all kinds of things - Editor, file type associations... Could not find any solution.

Tested with - .html, .hbs files - reformat code just does not work. It kinda works for some top level elements though.

 

Before reformat:

After reformat:

 

 

 

3 comments
Comment actions Permalink

please remove 'span' from 'Keep white spaces inside' list in Settings | Editor | Code Style | HTML | Other.

Indent of text inside span is made of whitespaces; when this option is enabled, <span> tags are not touched by formatter

3
Comment actions Permalink

Thank you that was it!

1
Comment actions Permalink

Worked, thank you!

0

Please sign in to leave a comment.