IDE Plugins
IDE Plugins
Section titled “IDE Plugins”The right IDE setup gives you auto-completion for .api files, inline errors, and one-click code generation.
VS Code
Section titled “VS Code”Install the following extensions (search in the Extensions panel or click the links):
| Extension | Purpose |
|---|---|
| Go | Language server, debugging, test runner |
| goctl | Syntax highlight + snippets for .api files |
| vscode-proto3 | Syntax highlight for .proto files |
| Error Lens | Inline error messages |
After installing the Go extension, open any .go file and VS Code will prompt you to install gopls, dlv, and other tools — accept all prompts.
Validate gopls is running
Section titled “Validate gopls is running”Open a .go file. Hover over a function name — you should see a documentation popup. If not, run:
Ctrl+Shift+P → Go: Install/Update Tools → select all → OKGoLand / IntelliJ IDEA
Section titled “GoLand / IntelliJ IDEA”| Plugin | Purpose |
|---|---|
| Go (built-in in GoLand) | Full Go support |
| Protocol Buffers | .proto syntax + navigation |
| goctl plugin | .api file syntax highlight |
In GoLand: Settings → Go → GOROOT — ensure it points to your Go installation.
Neovim
Section titled “Neovim”Use nvim-lspconfig with gopls:
require('lspconfig').gopls.setup{}Install gopls:
go install golang.org/x/tools/gopls@latest