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.
- Select “Settings” from the menu (shown in the above figure). It will show you the following screen.
- 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.