This is a creation in Article, where the information may have evolved or changed.
For the Visual Studio Code development tool, there is a good Golang plug-in, its homepage is: https://github.com/microsoft/vscode-go
Features of this plugin include:
- Code with color
- Code autocomplete (using Gocode)
- Code Snippets
- Quick Tip information (using GODEF)
- Jump to Definition (using GODEF)
- Search references (using go-find-references)
- Document Outline (using Go-outline)
- Renaming (using Gorename)
- Save build (using Go build and go test)
- Code formatting (using Goreturns or Goimports or gofmt)
- Debug code (using delve)
Install Go
Skip Over
Install Visual Studio Code
Go to official website: https://code.visualstudio.com/
To download the latest version of Visual Studio Code, the installation process needs to be simply decompressed and copied to the application directory.
Install the Go plugin
Install a few go packages that depend on
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
go get -u -v github.com/lukehoban/go-find-references
Parameter settings
If an environment variable is set, this step can be skipped.
参考资料:
http://blog.csdn.net/chszs/article/details/50076641
Https://github.com/Microsoft/vscode-go
Developing go programs using Visual Studio Code
http://colobu.com/2016/04/21/use-vscode-to-develop-go-programs/
Configuring the Go Development environment in visual Studio code
Http://www.cnblogs.com/zsy/p/5223957.html