Closed mdesantis closed 2 years ago
Troubleshooting this issue, I found that the following SO answer works:
For me the problem was with HTML files where formatting stopped working one day. I had Format On Save configured, which worked in all files except HTML.
I then realized that I experimentally set Format On Save Mode to modification instead of file and forgot about it. This had an effect of not formatting anything in HTML files, surprisingly not even my changes. Setting it back to file solved the issue.
VSCode refuses to format files using this extension on file save.
When I save a file, the file is not formatted and in the status bar the following message is displayed for a brief time:
If I format using format command instead (for example pressing
Ctrl+Shift+I
) it works properly and the file is formatted.