Formatting HTML is not working anymore

Since a few days ago, I get a message that the code is already properly formatted, no matter how badly formatted it is.
Screenshot attached. I have everything set in code style->html - nothing has changed and it used to work.
All other filetypes format correct.
format-html.png

5 comments
Comment actions Permalink

Are your files associated with HTML file type? Also, please try invalidating caches - does the problem persist?

0
Comment actions Permalink

Invalidating the caches didn't help.
The file is just a .html file... Does it have to be associated still?

0
Comment actions Permalink

Yes - with 'HTML' file type...
Sample project that shows up your issue + your idea.log might be helpful

0
Comment actions Permalink

4 years later this is stil a helpful thread! In my case, a plugin (which adds support for a certain templating language) hijacked the .html extension. After re-assigning *.html to the HTML file type, everything was OK again.

2
Comment actions Permalink

Svelte HTML Components hijacked the .html extension

Instructions to modify file type registrations:

https://www.jetbrains.com/help/idea/creating-and-registering-file-types.html

0

Please sign in to leave a comment.