一、settings sync的设置
- 首先安装settings sync
- 参考settings sync说明在github上设置personal access tokens,设置完后输入
sync upload
上传vscode的设置,需要github token - 在另一台电脑上输入
sync download
下载vscode的设置,需要github gist - 注意:由于早期存在vscode设置的github token但是失效了,会报如下错误
Sync : Invalid / Expired GitHub Token. Please generate new token with scopes mentioned in readme. Exception Logged in Console.
因此,我们要去github上重新生成新的token,然后
Win下:C:UsersAdministratorAppDataRoamingCodeUser
Mac下:~/Library/Application Support/Code/User/syncLocalSettings.json
Linux下:~/.config/Code/User/syncLocalSettings.json
进入目录后,找到 syncLocalSettings.json 这个文件,查找token,并替换后面复制的值,就可以顺利进行同步配置信息了。