Home > Article > Development Tools > How to set up automatic saving in vscode?
vscode is a lightweight, cross-platform, easy-to-use code editing tool developed by Microsoft that supports multiple development languages. It is an artifact for entry-level learning and development. Let me introduce to you how to set up automatic saving in vscode.
How to set automatic saving in vscode
1. After opening vscode, click Settings in the lower left corner (Gear-shaped) icon
2. In the menu that pops up from the settings button, select the [Settings] option. This is the setting entrance for the entire vscode
3. After opening the [settings] interface, the default [Auto Save] = [off], which means that it will not save automatically, and the user needs to save it manually every time
Parameter value:
● afterDelay
1) This is a fixed interval, automatically saved
2) This [Auto Save ] option, which needs to be matched with the next [Auto Save Delay] configuration item, which is used to specify the interval time in milliseconds
● onFocusChange
1) When Automatically save when the focus leaves the current window of the editor
2) That is: switching tabs within the editor will also trigger automatic save
3) This item does not require [Auto Save Delay] Set the value, and this value will also be ignored
● onWindowChange
1) Automatically save when the editor window loses focus
2) Only when the focus leaves the entire editor will the save be triggered. Switching tabs within the editor will not automatically save
3) This item does not require the [Auto Save Delay] setting value, and This value will also be ignored
After modifying the value in the [Settings] interface, there is no need to click the save button additionally, the settings will be automatically saved
Related recommendations: vscode usage tutorial
The above is the detailed content of How to set up automatic saving in vscode?. For more information, please follow other related articles on the PHP Chinese website!