美文网首页
vscode同步插件(github)

vscode同步插件(github)

作者: xxian | 来源:发表于2021-12-22 11:15 被阅读0次

    看了各种教程各种坑,记录下来希望帮到大家

    1.vscode安装插件 Setting sync


    image.png

    2.进入github -> Settings 在左侧 Developer settings


    image.png
    1. Personal access tokens点击按钮 Generate new token 新增一个token


      image.png
      image.png
    image.png

    4.回到VSCode配置 ctrl+shift+p 输入sync


    image.png
    image.png
    • 发现gist和token是两个东西


      image.png

    5.创建gist ,如果打不开页面应该是被强墙了


    image.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 输入你的设置


    image.png

    10、 将本地配置上传到github上

    shift+alt+u
    

    11、在其他设备上,下载sync插件,从github上下载配置到本地。

    shift+alt+d 
    

    参考 https://blog.csdn.net/weixin_42060896/article/details/105007965

    相关文章

      网友评论

          本文标题:vscode同步插件(github)

          本文链接:https://www.haomeiwen.com/subject/vikqqrtx.html