在安装Visual Studio Code插件的时候,由于谷歌的限制,在下载下列插件的时候会报错:
go get -u -v github.com/nsf/gocode go get -u -v github.com/rogpeppe/godef go get -u -v github.com/golang/lint/golint go get -u -v github.com/lukehoban/go-find-references go get -u -v github.com/lukehoban/go-outline go get -u -v sourcegraph.com/sqs/goreturns go get -u -v golang.org/x/tools/cmd/gorename go get -u -v github.com/tpng/gopkgs go get -u -v github.com/newhook/go-symbols
下面介绍如果绕过封锁去获取相应的插件:
md %GOPATH%\src\github.com\golang cd %GOPATH%\src\github.com\golang git clone https://github.com/golang/tools.git tools md %GOPATH%\src\golang.org\x\tools xcopy /s /e %GOPATH%\src\github.com\golang\tools
前提是设置好 %GOPATH%
可以参考下面的网址设置Visual Studio Code
http://www.cnblogs.com/zsy/archive/2016/02/28/5223957.html
有疑问加站长微信联系(非本文作者)
![](https://static.golangjob.cn/static/img/footer.png?imageView2/2/w/280)