In this article, we would like to show you how to enable automatic text formatting when you save a file in Visual Studio Code.
Do following steps:
- open Settings using one of the options:
gear icon: click icon -> Settings
application menu under macOS: Code -> Preferences -> Settings
application menu under Microsoft Windows: File -> Preferences -> Settings
Hint: gear icon is located in the left bottom corner.
- Type in the search field:
editor format save,
- Select the checkbox in the Editor: Format On Save.