The VS Code Go extension provides rich language support for the Go programming language.
To get started with Go Lang:
-
Install Go 1.18 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 tools depending on your settings. Ifgopls
is missing, the extension will try to install it. The ⚡ sign next to the Go version indicates the language server is running, and you are ready to go.
This project follows the Go Community Code of Conduct. If you encounter a conduct-related issue, please mail conduct@golang.org.