安装vscode
安装vscode-go 插件
进入vscode界面,打开命令面板Ctrl + Shift + P
,输入install
Completion Lists (using gocode)
Signature Help (using godoc)
Snippets
Quick Info (using godef)
Goto Definition (using godef)
Find References (using guru)
File outline (using go-outline)
Workspace symbol search (using go-symbols)
Rename (using gorename)
Build-on-save (using go build and go test)
Lint-on-save (using golint or gometalinter)
Format (using goreturns or goimports or gofmt)
Generate unit tests squeleton (using gotests)
Add Imports (using gopkgs)
[partially implemented] Debugging (using delve)
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-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 golang.org/x/tools/cmd/guru
命令面板 Ctrl + Shift + P
转到文件 Ctrl + P
切换终端 Ctrl + `
有疑问加站长微信联系(非本文作者)