vscode golang开发环境

前端之家收集整理的这篇文章主要介绍了vscode golang开发环境前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

安装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 + `
原文链接:https://www.f2er.com/go/189188.html

猜你在找的Go相关文章