How to migrate vscode configuration to a new computer:
1. Install the extension Settings Sync
Search for Settings Sync in the VSCode extension and install it. After the installation is complete, restart VSCode
2. Set up Github Person Access Token
This step requires you to have a github account because we need to upload the configuration Save it on github gist.
After you have a github account, go directly to this page: https://github.com/settings/tokens and click generate new token.
#Write a description of the token and check the gist option, and click Next.
At this time you will generate an access token. Remember to find a place to save your access token (for example, I saved it on a cloud disk or something), and then synchronize the configuration. use.
3. Upload your configuration to Github Gist
Open VSCode, ctrl (mac is command) shift p, enter sync, click Sync: Upload / Update Settings
Enter the access token saved in step 2
After the upload is successful, it will appear in the console output A series of information, remember two key pieces of information, Github Token is equivalent to a password, Github Gist is the id you save in Github Gist, these two pieces of information will be used in future download configurations
GitHub Token: 08eed0310a0ac7**********17cbc88d257aa8 GitHub Gist: 66671319ae7********f621fb2ec737fe # 可以通过https://gist.github.com/<username>/<gist id> 访问到这个信息
Configuring new devices VSCode
Install the Settings Sync extension, ctrl (mac is command) shift p, enter sync, click Sync: Download Settings, enter access token and gist id.
Recommended learning: vscode tutorial
The above is the detailed content of How to migrate vscode configuration to new computer. For more information, please follow other related articles on the PHP Chinese website!