Home > Article > Development Tools > How to set up automatic saving in vscode
Open the vscode window, click the settings (gear-shaped) icon in the lower left corner
In the menu that pops up the settings button, select [Settings] option, here is the setting entrance of the entire vscode
After opening the [settings] interface, the default [Auto Save] = [off], which means not automatically Save, the user needs to save manually every time
##[afterDelay]1) This is a fixed interval, automatic saving 2) This [Auto Save] option needs to be matched with the next [Auto Save Delay] configuration item, which is used to specify the interval time in milliseconds [onFocusChange]1) Automatically save when the focus leaves the current window of the editor2) That is: switching tabs within the editor will also trigger automatic save3) This item There is no need to set the value of [Auto Save Delay], and this value will also be ignored [onWindowChange]1) When the editor window loses focus Automatically save when 2) Only when the focus leaves the entire editor will the save be triggered. Switching tabs within the editor will not save automatically3) This item is not required [ Auto Save Delay] set 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 setting will be automatically The content is saved. Related recommendations: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!