第三步在命令行窗口执行go get -u -v github.com/newhook/go-symbols,安装go-symbols。其他几个同样执行此操作,包链接见下。
先在%GOPATH%/src/github.com下执行:
git clone https://github.com/mdempsky/gocode
git clone https://github.com/uudashr/gopkgs/cmd/gopkgs
git clone https://github.com/ramya-rao-a/go-outline
git clone https://github.com/acroca/go-symbols
git clone https://golang.org/x/tools/cmd/guru
git clone https://golang.org/x/tools/cmd/gorename
git clone https://github.com/go-delve/delve/cmd/dlv
git clone https://github.com/stamblerre/gocode
git clone https://github.com/rogpeppe/godef
git clone https://github.com/sqs/goreturns
git clone https://golang.org/x/lint/golint
之后在%GOPATH%下执行
go install github.com/mdempsky/gocode
go install github.com/uudashr/gopkgs/cmd/gopkgs
go install github.com/ramya-rao-a/go-outline
go install github.com/acroca/go-symbols
go install golang.org/x/tools/cmd/guru
go install golang.org/x/tools/cmd/gorename
go install github.com/go-delve/delve/cmd/dlv
go install github.com/stamblerre/gocode
go install github.com/rogpeppe/godef
go install github.com/sqs/goreturns
go install golang.org/x/lint/golint
示例:


在从github.com下载时,有时会发现目录的问题,比如下载github.com/mdempsky/gocode,在下载完成后,会在%GOPATH%/src/github.com目录下生成gocode目录(或者生成mdempsky(空的)与gocode目录),这时需要手工将gocode移至mdempsky目录下。
如果出现package golang.org/x/tools/go/buildutil: cannot download,http://github.com/golang/tools uses insecure protocol错误,不难看出是下载tools导致,由于我们上边已经安装tools而且此时goo-symbols已经通过go get下来,此时我们直接进入%GOPATH%srcgithub.comnewhookgo-symbols目录,进入命令行执行go install,安装成功go-symbols.exe已出现在%GOPATH%bin目录。

11、如果在打开VSCODE时(默认GO项目工程),提示

则可按以上方法进行安装。
12、安装完vscode时需要安装的插件,后面的名称是在%GOPATH%/bin下生成的exe文件
github.com/mdempsky/gocode gocode
github.com/uudashr/gopkgs/cmd/gopkgs gopkgs










