Loading

VisualStudioCode下golang必备插件

VisualStudioCode 下golang必备插件

在使用VisualStudioCode编写go程序的时候会发现首次保存文件提示安装扩展,但是肯定会安装失败.

点开右下角提示,细看有10几个扩展全部安装失败,我们可以自己装

gocode
godef
golint
go-find-references
go-outline
go-symbols
guru
gorename
goreturns
gopkgs

使用goget安装

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

go get -u -v github.com/ramya-rao-a/go-outline
go get -u -v github.com/acroca/go-symbols
go get -u -v github.com/mdempsky/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v golang.org/x/tools/cmd/godoc
go get -u -v github.com/zmb3/gogetdoc
go get -u -v golang.org/x/lint/golint
go get -u -v github.com/fatih/gomodifytags
go get -u -v golang.org/x/tools/cmd/gorename
go get -u -v github.com/sqs/goreturns
go get -u -v golang.org/x/tools/cmd/goimports
go get -u -v github.com/cweill/gotests/gotests
go get -u -v golang.org/x/tools/cmd/guru
go get -u -v github.com/josharian/impl
go get -u -v github.com/haya14busa/goplay/cmd/goplay
go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs
go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct
go get -u -v golang.org/x/net/context/ctxhttp

使用GOPM安装

下载

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

说明

算了,懒得说明了,这个没有说明的必要
posted @ 2021-07-30 15:36  我爱吃炒鸡  阅读(762)  评论(0编辑  收藏  举报