Skip to content

Vscode Go 环境搭建

vscode go tools 不使用魔法更新

go tools可能不会继承环境变量,需要对 gotools 单独配置, 与 ~/.bashrc配置一样即可 eg:

"go.toolsEnvVars": {
    "GOPROXY": "https://goproxy.cn,direct",
    "GOPATH": "/root/envs/gopath"
}

Comments