VSCode-Settings Sync synchronization settings

illustrate:

As an IDE tool for development, vscode is deeply loved by the majority of coders, but it does not have the function of backing up settings. This problem is particularly troublesome when changing computers. This article will introduce in detail how to solve the problem of reinstalling various plug-ins, Configure various shortcut keys, setting and other issues.
For details, please refer to: https://timor419.github.io/2021/05/15/VSCode-Settings-Sync/

We can use setting-syncplug-ins to solve the problems of reinstalling various plug-ins, configuring various shortcut keys, settings and other settings when changing computers. The specific operation will be introduced one by one below.

1. Create Github Token

  1. Log in to GitHub to enter your Settings\Developer settingsinterface , select Personal access tokens, and click Generate new token.
    insert image description here

  2. Set up as shown below.
    insert image description here

  3. Click Generate tokento generate and copy the string.
    insert image description here

2. Installationsetting-sync

Search for setting-syncthis and click Install.
insert image description here

3. Settingssetting-sync

  1. Press the shortcut key in vscode shift + command + p, the following search box appears
    insert image description here

  2. Enter search in the search box: Sync:Advanced Options, click to select this option
    insert image description here

  3. Select [Open Settings]
    insert image description here

  4. Check the following settings
    insert image description here

4. Upload configuration

Copy the string generated in GitHub in step 1, press the shortcut key Alt + Shift + U, and complete the configuration upload
insert image description here

5. Download the configuration in the new computer

Open vscode on the new computer, install it setting-sync, complete steps 2 and 3, press the shortcut key Alt + Shift + D, select the button in the picture below, copy the Gist ID from the old computer to the corresponding location of vscode on the new computer, and the download can be completed
insert image description here

------------- The End -------------

License Agreement: For reprinting, please keep the original link and author.

Guess you like

Origin blog.csdn.net/weixin_43937466/article/details/116858537