This is a creation in Article, where the information may have evolved or changed.
Installing Vscode
Installing the Vscode-go Plugin
Enter the Vscode interface, open the command panel Ctrl + Shift + P
, enterinstall
Completion Lists (usingGocode) Signature Help (usingGodoc) Snippetsquick Info (usingGODEF)GotoDefinition (usingGODEF) Find References (usingGuru) File Outline (usingGo-outline) Workspace Symbol search (usingGo-symbols) Rename (usingGorename) build- on-save (usingGo Build andGo test) lint- on-save (usingGolintorGometalinter) Format (usingGoreturnsorGoimportsorGOFMT) Generate Unit tests Squeleton (usinggotests) AddImports(usingGOPKGS) [Partially implemented] debugging (usingDelve
Go get- u - vGitHub.Com/nsf/gocodego get- u - vGitHub.Com/rogpeppe/godefgo get- u - vGitHub.Com/golang/lint/golintgo get- u - vGitHub.Com/lukehoban/go-outlineGo get- u - vSourcegraph.Com/sqs/goreturnsgo get- u - vGolang.Org/x/tools/cmd/gorenamego get- u - vGitHub.Com/tpng/gopkgsgo get- u - vGitHub.Com/newhook/go-symbolsGo get- u - vGolang.Org/x/tools/cmd/guru
Shift + P转到文件 Ctrl + P切换终端 Ctrl + `