Go by GoLand
⚠️ This extension is currently in preview
Before you use Go by GoLand, disable the Go extension by the Go team: VS Code Marketplace or Open VSX for Cursor.
Running two language servers on the same file produces duplicate results.
Now you can have GoLand-powered language intelligence in Visual Studio Code and its forks, including Cursor.
This extension gives you Go language support, automatic import of Go modules, code search and navigation optimized for large repositories, and the code analysis of GoLand.
It is designed to complement AI-assisted development by making it easier to review, understand, navigate, and refine generated Go code before it reaches production.
Preview
During the preview period, you can use the extension without a license.
Each preview build expires 30 days after its release day. Install a newer preview version to renew the evaluation period.
Licensing will be introduced with the 1.0 release.
Key features
- Support for large repositories: navigation and search work across the imported modules in your workspace.
- Automatic import of Go modules: the extension finds
go.mod and go.work files, including those in subdirectories. It imports the modules and their dependencies, and imports them again when these files change.
- Code navigation: go to definitions, type definitions, usages, and implementations across module boundaries. Use the type hierarchy to explore interfaces and the types that implement them.
- Symbol search: find types, functions, and other declarations in the current file or across the workspace.
- Code completion and signature help: get suggestions for types, functions, methods, variables, package members, and keywords. Signature help shows the parameters of a call while you type.
- Inspections and quick-fixes: GoLand inspections highlight problems as you type. Quick-fixes help resolve them.
- Rename and Move refactoring: rename symbols or move Go files and package folders. The extension updates code references and imports as needed.
- Documentation: hover over a symbol or an import path to read its documentation.
- Code formatting and folding: format Go files with
gofmt, and collapse code blocks, comments, and imports.
- Running: build and run Go packages, or run compiled executables, without Delve. Save launch configurations with arguments, environment variables, and a working directory.
- Debugging: debug a Go application or attach to a running headless Delve server. Set breakpoints, step through code, inspect variables and the call stack, and add watch expressions.
- Testing: browse, run, and debug tests from the editor or the Testing view. Use a launch configuration to save test options, or a separate profile to run fuzz tests.
- Support for
go.mod and go.work files: syntax highlighting in both files.
- Automatic Go SDK detection: the extension uses your installed Go toolchain. It finds the
go executable in your system PATH.
Install Delve before you debug, because the extension uses it. For all features, settings, and troubleshooting, read the documentation.
More features are coming with each preview build. If you need one that is not here yet, send us a feature request.
Quick Start
- Install Go, and make sure that the
go executable is in your system PATH.
- Disable the Go extension by the Go team: VS Code Marketplace or Open VSX for Cursor. This prevents duplicate results from two language servers.
- Open the Extensions view in Visual Studio Code or in Cursor, search for Go by GoLand, and click Install.
- Open any Go file in your project, and the extension immediately imports your modules and analyses the project.
When you open a Go source file for the first time, the End User License Agreement (EULA) opens in a separate editor tab. Accept the agreement to use the extension. If you close the tab without accepting the agreement, it opens again the next time you open a project.
The Command Palette has four commands under the Go by GoLand category. They are Restart Language Server, Clear Caches and Restart Language Server, Reload Workspace, and Manage License.
Feedback and Support
We welcome your feedback and would love to hear about your experience.
If you have any questions, suggestions, or run into an issue, please contact us through the JetBrains support portal. Our team will get back to you as soon as possible.
Telemetry and Privacy
JetBrains can collect and transmit usage data in this version of the Product. Any such data will be handled in accordance with the JetBrains Privacy Notice available at https://www.jetbrains.com/legal/docs/privacy/privacy/ and the Product Data Collection and Usage Notice available at https://www.jetbrains.com/legal/docs/terms/product_data_collection/.
Supported Marketplaces
The extension is available on: