问题:换电脑或者使用别的电脑,不想再重新下载插件,超级麻烦一个一个搜索。
1.最初电脑vscode上安装Settings Sync的插件
2.登录github
网站GitHub: Where the world builds software · GitHub
进入设置
3.点击左侧导航栏的Developer settings
4.点击Personal access tokens后点击Generate new token新增一个token
5.创建名字+生成token
6.保存token值,在VSCode配置上需要使用
7.回到VSCode配置将token配置到本地
- vscode界面,文件 —> 首选项 —> 设置
- 快捷键:ctrl+shift+p,
在弹出框里选择 更新上传配置 ,上传插件
更新完成结果后显示如图所示
Extensions Added:
auto-markdown-toc v3.0.12
better-comments v2.1.0
bracket-pair-colorizer-2 v0.2.0
carbon-now-sh v1.2.0
change-case v1.0.0
code-runner v0.11.3
code-settings-sync v3.4.3
codelf v11.7.0
indent-rainbow v7.5.0
jupyter v2021.6.832593372
markdown-preview-enhanced v0.5.18
material-icon-theme v4.6.0
output-colorizer v0.1.2
path-intellisense v2.3.0
--------------------
Done.
8.登录授权github
登录账户后,需要获得授权,如图所示,需要使用gihub账户中的gist id信息,点击同意授权。跳转页面后会显示配置成功
9、在新设备同步插件
在新设备里先安装Settings Sync然后登录github关联一下
关联好后,下载配置
.
显示如下:成功,美滋滋
Realtime Extension Download Summary
--------------------
TOTAL EXTENSIONS : 26
[x] - EXTENSION: auto-markdown-toc - INSTALLING
[x] - EXTENSION: auto-markdown-toc INSTALLED.
1 OF 26 INSTALLED
[x] - EXTENSION: better-comments - INSTALLING
[x] - EXTENSION: better-comments INSTALLED.
2 OF 26 INSTALLED
.......
CODE SETTINGS SYNC DOWNLOAD SUMMARY
Version: 3.4.3
--------------------
GitHub Token: gho_**********
GitHub Gist: .................
GitHub Gist Type: Secret
Restarting Visual Studio Code may be required to apply color and file icon theme.
--------------------
Files Downloaded:
extensions.json > extensions.json
keybindings.json > keybindings.json
settings.json > settings.json
Extensions Ignored:
No extensions ignored.
Extensions Removed:
anaconda-extension-pack v1.0.1
vscode-yaml v0.17.0
Extensions Added:
auto-markdown-toc v3.0.12
better-comments v2.1.0
bracket-pair-colorizer-2 v0.2.0
......................
--------------------
Done.