This extension adds rich language support for the Go language to VS Code.
Read the Changelog to know what has changed over the last few versions of this extension.
Auto Completion of symbols as you type (using gocode)
Signature Help for functions as you type (using gogetdoc or godef+go doc)
Quick Info on the symbol as you hover over it (using gogetdoc or godef+go doc)
Go to or Peek Definition of symbols (using gogetdoc or godef+go doc)
Find References of symbols and Implementations of interfaces (using guru)
Go to symbol in file or see the file outline (using go-outline)
Go to symbol in workspace (using go-symbols)
Toggle between a Go program and the corresponding test file.
Code Snippets for quick coding
Format code on file save as well as format manually (using goreturns or goimports which also remove unused imports or gofmt)
Symbol Rename (using gorename. Note: For Undo after rename to work in Windows you need to have diff tool in your path)
Add Imports to current file (using gopkgs)
Add/Remove Tags on struct fields (using gomodifytags)
Generate method stubs for interfaces (using impl)
Fill struct literals with default values (using fillstruct)
Build-on-save to compile code and show build errors. (using go build and go test)
Vet-on-save to run go vet and show errors as warnings
Lint-on-save to show linting errors as warnings (using golint, gometalinter, staticcheck, golangci-lint or revive)
Semantic/Syntactic error reporting as you type (using gotype-live)
Run Tests under the cursor, in current file, in current package, in the whole workspace using either commands or codelens
Run Benchmarks under the cursor using either commands or codelens
Show code coverage either on demand or after running tests in the package.
Generate unit tests skeleton (using gotests)
Debug your code, binaries or tests (using delve)
Install/Update all dependent Go tools
Upload to the Go Playground (using goplay)
How to use this extension?
Install and open Visual Studio Code. Press Ctrl+Shift+X or Cmd+Shift+X to open the Extensions pane. Find and install the Go extension. You can also install the extension from the Marketplace. Open any .go file in VS Code. The extension is now activated.