Languages
[Edit]
EN

VS Code - format on save

3 points
Created by:
starcraf35
754

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: 

  1. open Settings using one of the options:
    key shortcut: Ctrl+,
    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.
  2. Type in the search field: editor format save,
  3. Select the checkbox in the Editor: Format On Save.
Automatic format file on save in VS Code.
Automatic format file on save in VS Code.

Alternative titles

  1. VS Code - autoformatting on file save
  2. VSCode - format on save
  3. VSCode - autoformatting on file save
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Visual Studio Code

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join