VisualStudioCode 下golang必备插件
在使用VisualStudioCode编写go程序的时候会发现首次保存文件提示安装扩展,但是肯定会安装失败.
点开右下角提示,细看有10几个扩展全部安装失败,我们可以自己装
gocode
godef
golint
go-find-references
go-outline
go-symbols
guru
gorename
goreturns
gopkgs
下载
gopm get -g -v github.com/ramya-rao-a/go-outline
gopm get -g -v github.com/acroca/go-symbols
gopm get -g -v github.com/mdempsky/gocode
gopm get -g -v github.com/rogpeppe/godef
gopm get -g -v golang.org/x/tools/cmd/godoc
gopm get -g -v github.com/zmb3/gogetdoc
gopm get -g -v golang.org/x/lint/golint
gopm get -g -v github.com/fatih/gomodifytags
gopm get -g -v golang.org/x/tools/cmd/gorename
gopm get -g -v github.com/sqs/goreturns
gopm get -g -v golang.org/x/tools/cmd/goimports
gopm get -g -v github.com/cweill/gotests/gotests
gopm get -g -v golang.org/x/tools/cmd/guru
gopm get -g -v github.com/josharian/impl
gopm get -g -v github.com/haya14busa/goplay/cmd/goplay
gopm get -g -v github.com/uudashr/gopkgs/cmd/gopkgs
gopm get -g -v github.com/davidrjenni/reftools/cmd/fillstruct
gopm get -v -g golang.org/x/net/context/ctxhttp
安装
go install github.com/ramya-rao-a/go-outline
go install github.com/acroca/go-symbols
go install github.com/mdempsky/gocode
go install github.com/rogpeppe/godef
go install golang.org/x/tools/cmd/godoc
go install github.com/zmb3/gogetdoc
go install golang.org/x/lint/golint
go install github.com/fatih/gomodifytags
go install golang.org/x/tools/cmd/gorename
go install github.com/sqs/goreturns
go install golang.org/x/tools/cmd/goimports
go install github.com/cweill/gotests/gotests
go install golang.org/x/tools/cmd/guru
go install github.com/josharian/impl
go install github.com/haya14busa/goplay/cmd/goplay
go install github.com/uudashr/gopkgs/cmd/gopkgs
go install github.com/davidrjenni/reftools/cmd/fillstruct
说明