Home  >  Article  >  Development Tools  >  How to migrate vscode configuration to new computer

How to migrate vscode configuration to new computer

尚
Original
2020-03-25 10:19:2110281browse

How to migrate vscode configuration to new computer

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

How to migrate vscode configuration to new computer

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.

How to migrate vscode configuration to new computer

#Write a description of the token and check the gist option, and click Next.

How to migrate vscode configuration to new computer

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.

How to migrate vscode configuration to new computer

3. Upload your configuration to Github Gist

Open VSCode, ctrl (mac is command) shift p, enter sync, click Sync: Upload / Update Settings

How to migrate vscode configuration to new computer

Enter the access token saved in step 2

How to migrate vscode configuration to new computer

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn