Go in Visual Studio Code
Using the Go extension for Visual Studio Code, you get features like IntelliSense, code navigation, symbol search, testing, debugging, and many more that will help you in Go development.
You can install the Go extension from the VS Code Marketplace.
Watch "Getting started with VS Code Go" for an explanation of how to build your first Go application using VS Code Go.
This article describes only a subset of the features the Go extension provides. See the extension's documentation for the full, up-to-date list of supported features.
IntelliSense
IntelliSense features are provided by the Go language server, gopls, maintained by the Go team. You can configure the behavior of gopls
using the gopls
settings.
Semantic syntax highlighting
For better syntax highlighting than the default TextMate-based syntax highlighting, we recommend enabling semantic highlighting by turning on Gopls' ui.semanticTokens
setting.
"gopls": { "ui.semanticTokens": true }