How to toggle Auto Save in VS Code

Last updated on February 9, 2022 A Goodman Loading... Post a comment

To turn on or turn off the Auto Save feature in Visual Studio Code, go to File and click on Auto Save from the drop-down menu:

The steps are completely the same in Windows and macOS.

If you want to config the Auto Save behavior deeper, go to:

  • Mac: Code > Preferences > Settings
  • Windows: File > Preferences > Settings

Search for “auto save” then head to the Files: Auto Save area:

From the drop-down select menu, you can see the following options:

  • off: No auto-save at all.
  • afterDelay: Your changes will be saved automatically after a delay
  • onFocusChange: When the editor loses focus, your code file will be automatically saved.
  • onWindowChange: Your changes will be saved automatically when the window loses focus.

Screenshot:

Pick an option that suits your needs.

Further reading:

You can also check out our Visual Studio Code topic page for more tips and tricks to improve your producibility and coding experience.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Related Articles