Visual Studio Code Format will allow you to format most of your code documents.
The formatting is triggered by running your format command:
Place your braces on the same line or the next line:
Based on your settings you will see this as a result:
Or you will see this as a result:
Place 0 or more spaces before or after a parenthesis/brace/comma for each type of keyword.
Here are just a few of the different settings:
Add your own space formats for a particular language:
If you would like to disable a particular language add the language id to the
Here is the current list of disabled languages:
If you would like to disable formatting in the entire workspace, set