IDE Plugins & Extensions

GoHT is still fairly new, but we have plans to support a variety of IDEs and editors. Currently, we have a VSCode extension available. We are also working on a plugin for GoLand and other JetBrains IDEs.

GoHT (LSP)

The plugins and extensions make use of the LSP functionality built into the GoHT CLI. This allows us to provide a consistent experience across different editors and IDEs.

GoHT needs to be installed and available in your PATH for the plugins and extensions to work. You can install GoHT by running the following command:

$ go install github.com/stackus/goht@latest

Go Language Server Protocol (LSP)

The plugins and extensions for GoHT are built on top of the Go Language Server Protocol (LSP).

Installation

When you enable basic Go support in your IDE, the GoPls LSP server is typically installed as well. This is the server that the GoHT LSP server depends on. If you don’t have it installed, you can install it by running the following command:

$ go install golang.org/x/tools/gopls@latest