golang使用vscode做ide

新版本golang,1.14+ ,httpproxy

  • 安装最新版本golang
    新版安装后自动配置了gopath环境变量,旧版本需手动配置

  • 配置vscode http代理
    1. 获取代理,l a n t e r n-设置-高级设置-HTTP(S)代理服务器:127.0.0.1:50619
    2. 配置到vscode,vscode-首选项-
                Http:Proxy    http://127.0.0.1:50619
                Http:Proxy Strict SSL     false
    或在setting.json中添加:

    "http.proxy": "http://127.0.0.1:50619",
    "http.proxyStrictSSL": false
    
  • 按vscode提示安装go插件

    go.toolsGopath setting is not set. Using GOPATH C:\Users\fegnz\go 这个不去管它
    Installing 17 tools at C:\Users\fegnz\go\bin in module mode.
    gocode
    gopkgs
    go-outline
    go-symbols
    guru
    gorename
    gotests
    gomodifytags
    impl
    fillstruct
    goplay
    godoctor
    dlv
    gocode-gomod
    godef
    goreturns
    golint

    Installing github.com/mdempsky/gocode SUCCEEDED
    Installing github.com/mdempsky/gocode SUCCEEDED
    Installing github.com/uudashr/gopkgs/v2/cmd/gopkgs SUCCEEDED
    Installing github.com/uudashr/gopkgs/v2/cmd/gopkgs SUCCEEDED
    Installing github.com/ramya-rao-a/go-outline SUCCEEDED
    Installing github.com/ramya-rao-a/go-outline SUCCEEDED
    Installing github.com/acroca/go-symbols SUCCEEDED
    Installing github.com/acroca/go-symbols SUCCEEDED
    Installing golang.org/x/tools/cmd/guru SUCCEEDED
    Installing golang.org/x/tools/cmd/guru SUCCEEDED
    Installing golang.org/x/tools/cmd/gorename SUCCEEDED
    Installing golang.org/x/tools/cmd/gorename SUCCEEDED
    Installing github.com/cweill/gotests/… SUCCEEDED
    Installing github.com/cweill/gotests/… SUCCEEDED
    Installing github.com/fatih/gomodifytags SUCCEEDED
    Installing github.com/fatih/gomodifytags SUCCEEDED
    Installing github.com/josharian/impl SUCCEEDED
    Installing github.com/josharian/impl SUCCEEDED
    Installing github.com/davidrjenni/reftools/cmd/fillstruct SUCCEEDED
    Installing github.com/davidrjenni/reftools/cmd/fillstruct SUCCEEDED
    Installing github.com/haya14busa/goplay/cmd/goplay SUCCEEDED
    Installing github.com/haya14busa/goplay/cmd/goplay SUCCEEDED
    Installing github.com/godoctor/godoctor SUCCEEDED
    Installing github.com/godoctor/godoctor SUCCEEDED
    Installing github.com/go-delve/delve/cmd/dlv SUCCEEDED
    Installing github.com/go-delve/delve/cmd/dlv SUCCEEDED
    Installing github.com/stamblerre/gocode SUCCEEDED
    Installing github.com/stamblerre/gocode SUCCEEDED
    Installing github.com/rogpeppe/godef SUCCEEDED
    Installing github.com/rogpeppe/godef SUCCEEDED
    Installing github.com/sqs/goreturns SUCCEEDED
    Installing github.com/sqs/goreturns SUCCEEDED
    Installing golang.org/x/lint/golint SUCCEEDED

    All tools successfully installed. You are ready to Go 😃.
    Installing golang.org/x/lint/golint SUCCEEDED

    All tools successfully installed. You are ready to Go 😃.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值