Provides a command to toggle Format on Save ( editor. formatOnSave ) inside VS Code. Open your Command Palette ( CMD / CTRL + SHIFT + P ) and type Toggle Format on Save , then hit Enter .
How do you save on VS code?
By default, VS Code requires an explicit action to save your changes to disk, Ctrl+S. However, it's easy to turn on Auto Save , which will save your changes after a configured delay or when focus leaves the editor.
How do you auto indent on save VS code?
Automatically indent your code in VSCode
- Press Ctrl+Shift+P to open Command Palette. Type in settings and select Open User Settings.
- In Search settings box, input indent to search for settings related to indentation. Select full in Editor: Auto Indent section.
- Automatic indentation is now enabled.