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
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 code beautifier from the list.
If Format Document With...
is not available:
Open a file in Visual Studio Code (the extension of the file is not important can be .js, .html, .txt, etc...) then repeat Solution A again.
Solution B:
Windows:
go to file -> preferences -> settings
Mac:
go to code -> preferences -> settings
in the search bar tpye 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've installed before.