How to enable auto save in Visual Studio Code

By default, Visual Studio Code IDE does not save the code automatically. So, if you are using this IDE to write code, you need to press CTRL+S every time you make changes to the code. However, the IDE has an option to enable “Auto Save” so that you do not have to press CTRL+S.

Here are the steps to enable “Auto Save” in Visual Studio Code IDE:

  • On Visual Studio Code IDE, click on “Settings” [gear (cog wheel)] present in the left corner of the IDE.
How to enable auto save in Visual Studio Code
  • Select “Settings” from the menu (shown in the above figure). It will show you the following screen.
How to enable auto save in Visual Studio Code
  • Under “Commonly Used,” you will see “Files: Auto Save.” Select an option from the drop-down menu depending on how IDE should save the code.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.