VSCode插件同步工具

VSCode是一个非常优秀的编辑器,我们可能会在不同的电脑上都会使用VSCode, VSCode中安装有许多插件, 如何让这些插件在不同的电脑之间同步呢,以便我们开发的时候有个一致的开发环境。

使用github GIST, 网址是https://gist.github.com ,当然它远不止可以同步插件,还可以同步以下内容。

VSCode插件同步工具

具体步骤如下:

1.在VSCode中先安装插件settings Sync

2.F1输入命令sync

3.选择Update/Upload Settings,如果是新创建的话全产生gist id,如果是想下载的话,选择Downlad Settings.

github token: 88cbd8d0daf7c03xxxxx39c094f00

Sync: Upload Complete. GIST ID: 54c3bf9719f4xxxxxxa8eca48181. Please copy and use this ID in other machines to download settings.

 

下面是官网的原文:

You can always verify created gist by going to https://gist.github.com and checking for a gist named cloudSettings

Upload Your Settings

Press Shift + Alt + U (macOS: Shift + Option + U)

Type ">Sync" In Command Palette into order download / upload

When downloading or uploading for the first time, the welcome page will automatically open, where you can configure the Settings Sync.

Once you select upload, after uploading the settings. You will see the Summary details with the list of each files and extensions uploaded.

Download your Settings

Press Shift + Alt + D (macOS: Shift + Option + D)

Type ">Sync" In Command Palette into order download / upload

When downloading or uploading for the first time, the welcome page will automatically open, where you can configure the Settings Sync.

Once you select download, after downloading. Settings Sync will display you Summary containing the list of each files and extension being downloaded.

New popup will be opened to allow you to restart the code to apply the settings.