Kinda Code
Home/VS Code/How to toggle Auto Save in VS Code

How to toggle Auto Save in VS Code

Last updated: September 02, 2023

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, see the following steps:

1. Go to:

  • Windows: File > Preferences > Settings (hotkeys: Ctrl + ,)
  • Mac: Code > Settings… (it can be Preferences on old versions of MacOS) > Settings (shortcuts: Cmd + ,)

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

3. 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.

Related Articles