Quantcast
Channel: Active questions tagged vs-code-settings - Stack Overflow
Viewing all articles
Browse latest Browse all 48

VScode Prettier Extension Not Formatting on Save

$
0
0

When saving a file that has Prettier configured as the default formatter, nothing happens and the file is not formatted.

I have looked at all the similar questions related to this issue, but they all boil down to setting Prettier as the default formatter in VScode. First of all this will not work for my situation since I only want to use it for HTML, and secondly I have configured Prettier correctly as the default formatter for the file I want to format. I know this because Format Document With... yields:prettier showing as default formatter on html file

If I run that command, Prettier formats the file exactly as I would expect. If I change my settings to use the built-in formatter and save the file, the formatter kicks in and formats the file, just as I would expect. So the real issue is that even though Prettier is formatted as the default, it will not format on save.


Viewing all articles
Browse latest Browse all 48

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>