Go support for WebStorm and other JetBrains IDEs that don't have the official Go plugin.
Language features come from gopls over LSP (via LSP4IJ), debugging from Delve over DAP. The plugin adds run configurations, gutter icons, a test runner, coverage and toolchain setup on top.
Status: beta (0.1.x). Feature-complete for everyday use and used daily by the author; some rough edges remain. Bug reports are welcome in Issues.
Maintained in spare time on a best-effort basis: issues get read, but fixes and new features may take a while. Pull requests are welcome.
Editor
- Highlighting (lexer + gopls semantic tokens), completion, go to declaration, find usages, rename, quick documentation
- Diagnostics from gopls; gopls and staticcheck analyzers exposed as regular inspections
- Formatting and organize imports on save, inlay hints
- Smart Enter, live templates, Surround With
- gopls refactorings (extract function/variable/constant, inline, …) in Refactor This and Alt+Enter
go.mod,go.workandgo.sumfiles
Run and debug
- ▶ in the gutter for
func main, tests, subtests (t.Run("name", …)), benchmarks, fuzz targets and examples - Go Application configuration: file or package, args, env and env file, working directory, build flags, race detector
- Go Test configuration: package, file or single test; test tree with subtests, rerun failed tests
- Debugging with
dlv dap: breakpoints, variables, goroutines - Attach to a local Go process; remote debugging against
dlv --headlesswith path mapping - Run tests with coverage
- Clickable
file.go:line:collinks in the console
Toolchain
- Finds Go automatically (PATH,
~/go/bin, GOROOT, standard locations) - Offers to install or update gopls and dlv with
go install - Settings under Settings → Languages & Frameworks → Go
- WebStorm 2026.3 or newer (build 263+); other JetBrains IDEs without the Go plugin should work too
- LSP4IJ 0.21.0 or newer
- Go installed on the machine
- The project must be trusted: in an untrusted project neither
gonor gopls is started
Not compatible with the official JetBrains Go plugin (GoLand, IntelliJ IDEA Ultimate) or other third-party Go plugins.
- Install LSP4IJ from the Marketplace: Settings → Plugins → Marketplace.
- Download
golsp-*.zipfrom Releases. - Settings → Plugins → ⚙ → Install Plugin from Disk…, pick the zip, restart the IDE.
- Open a Go project. If gopls or dlv is missing, the editor banner offers to install it.
Requires JDK 25 and a local WebStorm 2026.3 installation.
echo "webstormPath=/Applications/WebStorm.app" > local.properties
./gradlew buildPlugin # zip in build/distributions/
./gradlew runIde # sandbox IDE with testdata/hello
./gradlew test # unit and platform tests
./gradlew integrationTest # tests against real go, gopls and dlvApache License 2.0. Third-party code and its licenses are listed in THIRD_PARTY_NOTICES.md.