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-sync
plug-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
-
Log in to GitHub to enter your
Settings\Developer settings
interface , selectPersonal access tokens
, and clickGenerate new token
.
-
Set up as shown below.
-
Click
Generate token
to generate and copy the string.
2. Installationsetting-sync
Search for setting-sync
this and click Install.
3. Settingssetting-sync
-
Press the shortcut key in vscode
shift + command + p
, the following search box appears
-
Enter search in the search box:
Sync:Advanced Options
, click to select this option
-
Select [Open Settings]
-
Check the following settings
4. Upload configuration
Copy the string generated in GitHub in step 1, press the shortcut key Alt + Shift + U
, and complete the configuration upload
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
------------- The End -------------
License Agreement: For reprinting, please keep the original link and author.