If you are already using the third-party auto-save extension. There’s a good news for you, VS Code comes with a built-in auto-save feature.
The problem with the third-party auto-save extension is that you can't adjust the delay to save the file.
On each keypress, the plugin will try to save the file, which will compile the code, thus making the compiling process slower. This will affect your developer experience when the codebase is larger.
In this tutorial I will help you to enable the auto-save and set the delay for it. After enabling this settings, you can uninstall your auto-save extension.
Step 1: Go to the Settings
Open Settings by going to File > Preferences > Settings
Step 2: Configure Auto-Save
Type "auto save" in the settings. Click the "Files: Auto Save" dropdown and select the "afterDelay" value. Set the "Files: Auto Save Delay" to 1000 milliseconds, as shown in the screenshot below.
Step 3: Restart Visual Studio Code Editor
After restarting Visual Studio Code, the auto-save feature will be active, making your development experience more smoother.
I hope you found this tutorial helpful. Stay tuned for more tutorials!
Top comments (0)