How do you change the formatting options in Visual Studio Code?

Matt McCabe picture Matt McCabe · May 6, 2015 · Viewed 93.6k times · Source

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?

Answer

Sajad Saderi picture Sajad Saderi · Oct 5, 2019

At the VS code

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.