When installing the visual Studio Code plugin, due to Google restrictions, when downloading the following plug-ins will be error:
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
Here's what to do if you bypass the blocking to get the appropriate plugin:
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
The premise is to set the%gopath%.
You can refer to the following URL settings for visual Studio Code
Http://www.cnblogs.com/zsy/archive/2016/02/28/5223957.html
Installing the Go locale visual Studio code plugin