Go for Visual Studio Code

The VS Code Go extension
provides rich language support for the
Go programming language.
Requirements
- Visual Studio Code 1.90 or newer (or editors compatible with VS Code 1.90+ APIs)
- Go 1.21 or newer.
Quick Start
Welcome! 👋🏻
Whether you are new to Go or an experienced Go developer, we hope this
extension fits your needs and enhances your development experience.
-
Install Go 1.21 or newer if you haven't already.
-
Install the [VS Code Go extension].
-
Open any Go file or go.mod file to automatically activate the extension. The
Go status bar appears in the
bottom right corner of the window and displays your Go version.
-
The extension depends on go, gopls (the Go language server), and optional