Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Vscode sets the method of automatic saving

Shulou Source: shulou.com Published: 2022-06-02 16:10:01 10月03日 Update

This article is to share with you about the method of setting up automatic saving in vscode. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Vscode is a lightweight, cross-platform, easy-to-use code editing tool developed by Microsoft that supports multiple development languages. It serves as an artifact for entry-level learning and development. Let's show you how to set up auto-save in vscode.

Vscode sets the method of automatic saving

1. After opening vscode, click the settings (gear) icon in the lower left corner.

2. In the pop-up menu of the settings button, select the "Settings" option, which is the setting entry of the entire vscode.

3. After opening the [settings] interface, the default is [Auto Save] = [off], which means that it is not automatically saved, and users need to save it manually each time.

Parameter values:

● afterDelay

1) this is a fixed interval and is automatically saved.

2) this [Auto Save] option needs to be matched with the next [Auto Save Delay] configuration item, which is used to specify the interval in milliseconds.

● onFocusChange

1) 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) the [Auto Save Delay] setting is not required for this item, and this value will be ignored.

● onWindowChange

1) automatically save when the editor window loses focus

2) Save will be triggered only if the focus leaves the entire editor, and switching tabs within the editor will not automatically save.

3) the [Auto Save Delay] setting is not required for this item, and this value will be ignored.

After the [Settings] interface modifies the value, you do not need to click the save button to automatically save the content of the setting.

Thank you for reading! This is the end of this article on "the method of automatic saving of vscode settings". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Editor method content focus development button time more interface article switch good practical code entry unit parameter only icon multiple Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi MySQL Linux Redmi vpn