1. 创建token(记住要复制上面的token):
https://github.com/settings/tokens.
2. 创建gist id
当前如果不存在gist,则无法创建gist id,
保存gist id
3. Ctrl+Shift+P 安装Settings-sync(我们保存了gistid 和 tokens以后)
以及安装了Settings-sync以后,Ctrl+Shift+P输入:Sync
填入token以及gist id
1 { "ignoreUploadFiles": ["projects.json", "projects_cache_vscode.json", "projects_cache_git.json", "projects_cache_svn.json", "gpm_projects.json", "gpm-recentItems.json"], "ignoreUploadFolders": ["workspaceStorage"], "ignoreExtensions": [], "replaceCodeSettings": {}, "gistDescription": "Visual Studio Code Settings Sync Gist", "version": 300, "token": "填入token", "downloadPublicGist": false, "supportedFileExtensions": ["json", "code-snippets"], "openTokenLink": true, "填入gist id": "sync" }
最后,使用Ctrl+Shift+P,输入
即可上传成功. 上传:Shift+Alt+U、下载:Shift+Alt+D
最后gist重新生成一份备份,以及一份新的gist id(保存好)
谨记保存新的gist id以及原来的token!!!
这是你以后恢复扩展插件的必要条件.
======================
恢复的话,即以下的步骤
下载vscode,安装settings-sync,最后按键shift+alt+u,输入你的token
最后更改gist id为上次的即可,再重启等待扩展安装