Go Nightly for VS Code
The VS Code Go extension provides rich language support for the Go programming language. 📣
Remote attach debugging is now available via Delve's native DAP implementation with Delve v1.7.3 or newer. It enchances remote debugging with the same
debugging features that are already in use for local debugging. It is now the default with the
Go Nightly build of the extension and will become the default for the stable releases in mid 2022.
We recommend switching your remote attach configurations in 📣📣 Watch Debugging Treasure Hunt from GopherCon 2021 for a fun take on a debugging demo with VS Code Go and Delve DAP. Quick StartWelcome! 👋🏻
You are ready to Go :-) 🎉🎉🎉 Please be sure to learn more about the many features of this extension, as well as how to customize them. Take a look at Troubleshooting and Help for further guidance. If you are new to Go, this article provides
the overview on Go code organization and basic FeaturesThis extension provides many features, including IntelliSense, code navigation, and code editing support. It also shows diagnostics as you work and provides enhanced support for testing and debugging your programs. See the full feature breakdown for more details and to learn how to tune its behavior.
In addition to integrated editing features, the extension provides several
commands for working with Go files. You can access any of these by opening the
Command Palette (
⚠️ Note: the default syntax highlighting for Go files is provided by a TextMate rule embedded in VS Code, not by this extension. For better syntax highlighting, we recommend enabling
semantic highlighting
by turning on Gopls' ToolsThe extension uses a few command-line tools developed by the Go community. In
particular, In order to locate these command-line tools, the extension searches
Setting up your workspaceGo modules are how Go manages dependencies in
recent versions of Go. Modules replace the Unlike the traditional Your project may involve one or more modules. If you are working with multiple modules or uncommon project layouts, you will need to configure your workspace by using Workspace Folders. Please see this documentation about supported workspace layouts. CustomizationThe extension needs no configuration and should work out of the box. However, you may wish to adjust settings to customize its behavior. Please see the settings documentation for a comprehensive list of settings. See advanced topics for further customizations and unique use cases. TroubleshootingIf the extension isn't working as you expect, you can take a look at our troubleshooting guides. There is one for general troubleshooting, and another specifically for troubleshooting the debugging feature. Ask for helpIf the troubleshooting guides did not resolve the issue, please reach out to us by filing an issue, starting a GitHub discussion, or by asking a question on Stack Overflow. Also, you can take a look at go.dev/learn and golang.org/help for more general guidance on using Go. Preview versionIf you'd like to get early access to new features and bug fixes, you can use the nightly build of this extension. Learn how to install it in by reading the Go Nightly documentation. ContributingWe welcome your contributions and thank you for working to improve the Go development experience in VS Code. If you would like to help work on the VS Code Go extension, please see our contribution guide. It explains how to build and run the extension locally, and describes the process of sending a contribution. Code of ConductThis project follows the Go Community Code of Conduct. If you encounter a conduct-related issue, please mail conduct@golang.org. License |