看了各种教程各种坑,记录下来希望帮到大家
1.vscode安装插件 Setting sync
![](https://img.haomeiwen.com/i11028739/e6e29d44c30be7bf.png)
2.进入github -> Settings 在左侧 Developer settings
![](https://img.haomeiwen.com/i11028739/fcb548938381d2d8.png)
-
Personal access tokens点击按钮 Generate new token 新增一个token
image.png
image.png
![](https://img.haomeiwen.com/i11028739/bd470bbe023a0897.png)
4.回到VSCode配置 ctrl+shift+p 输入sync
![](https://img.haomeiwen.com/i11028739/e55bd4c27abe0f63.png)
![](https://img.haomeiwen.com/i11028739/d99b452a2a94e590.png)
-
发现gist和token是两个东西
image.png
5.创建gist ,如果打不开页面应该是被强墙了
![](https://img.haomeiwen.com/i11028739/7ec3dc87281f71de.png)
6.解决打不开页面
- 打开https://www.ipaddress.com/,输入gist.github.com获取IP地址
image.png
image.png
- windows下 打开C:\Windows\System32\drivers\etc\hosts文件
- 新增
140.82.114.4 gist.github.com
-
在cmd中执行ipconfig /flushdns
image.png
7.接着打开创建gist页面试试,还不成功就放弃吧
8.打开后创建gists,"Create secret gist"
image.png
-
得到gists
image.png
9.回到VScode 输入你的设置
![](https://img.haomeiwen.com/i11028739/4865e87677e8f4d4.png)
10、 将本地配置上传到github上
shift+alt+u
11、在其他设备上,下载sync插件,从github上下载配置到本地。
shift+alt+d
参考 https://blog.csdn.net/weixin_42060896/article/details/105007965
网友评论