Visual Studio Code Formatting fail on save

Same here, all my HTML format messed up after saving, I disable "JS-CSS-HTML Formatter" and problem solved


All my HTML format messed up in js after saving, I disable "JS-CSS-HTML Formatter" and restarted vscode, problem solved.


I found out what this was by looking though the extensions. Thanks to @wgj for the hint.

Turns out it was the JS-CSS-HTML formatter. I looked through the instructions and have removed the auto save for now. I'll have to work out the specific settings for this.

It uses js-beautify so if anyone knows the settings I should be looking at would be much appreciated.

enter image description here


I had a similar problem and it turned out my ultimate culprit was...

js-beautify for VS Code by HookQR

So I simply disabled it for the workspace.