1、Settings Sync是vscode中同步设置和安装插件的小工具,在扩展商店中搜索并安装它
2、登陆Github>Your profile> settings>Developer settings>personal access tokens>generate new token,输入名称,勾选Gist,提交
3、保存Github Access Token
4、打开vscode,Ctrl+Shift+P打开命令框,输入sync,找到update/upload settings,输入Token,上传成功后会返回Gist ID,保存此Gist ID.
5、若需在其他机器上DownLoad插件的话,同样,Ctrl+Shift+P打开命令框,输入sync,找到Download settings,会跳转到Github的Token编辑界面,点Edit,regenerate token,保存新生成的token,在vscode命令框中输入此Token,回车,再输入之前的Gist ID,即可同步插件和设置。
CODE SETTINGS SYNC UPLOAD SUMMARY
Version: 3.1.2
GitHub Token: 3c838d2ddf7b36856de46c41606a675de6f40adf
GitHub Gist: 95d216d834ab32535bf58e5e198f8d0f
GitHub Gist Type: Secret
Restarting Visual Studio Code may be required to apply color and file icon theme.
Files Uploaded:
extensions.json > extensions.json
keybindings.json > keybindings.json
locale.json > locale.json
settings.json > settings.json
c.json > snippets|c.json
git-commit.json > snippets|git-commit.json
javascriptreact.json > snippets|javascriptreact.json
vsicons.settings.json > vsicons.settings.json
Extensions Ignored:
No extensions ignored.
Extensions Removed:
No extensions removed.
Extensions Added:
auto-close-tag v0.5.6
auto-rename-tag v0.0.15
beautify v1.4.4
code-settings-sync v3.1.2
debugger-for-chrome v4.10.1
docthis v0.7.1
guides v0.9.2
indenticator v0.6.0
JavaScriptSnippets v1.7.0
json-schema-validator v0.1.0
npm-intellisense v1.3.0
path-autocomplete v1.12.0
prettier-vscode-with-tabs v1.1.0
react-native-react-redux v1.9.1
react-playground-vscode v0.0.11
ReactSnippets v2.2.0
sort-lines v1.7.0
theme-cobalt2 v2.1.6
theme-dracula v2.14.1
vetur v0.12.7
vscode-eslint v1.6.0
vscode-fileheader v0.0.2
vscode-icons v7.27.0
vue-format v0.1.2
vue-vscode-snippets v1.3.0
vuehelper v0.1.0
wallaby-vscode v1.0.94
Done.