I know you can Format Code using Ctrl+F / Cmd+F in Visual Studio Code but how do you change the formatting options for each language?
For example, in Visual Studio 2013 I can choose compact mode for CSS.
Is there another hidden JSON file to do that?
Update 2022
Solution A:
Press Ctrl+Shift+P
Then type Format Document With...
At the end of the list click on Configure Default Formatter...
Now you can choose your favorite beautifier from the list.
Solution B:
go to file -> preferences -> settings
search for format
, on the left side, click on Text Editor
, the very first item on the right side is Editor: Default Formatter
from the dropdown you can pick any document formatter which you installed before.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With