Settings and Commands

To view a complete list of the commands and settings for this extension:

  1. Navigate to the Extensions view (Ctrl+Shift+X).
  2. Find the Go extension, click on it to open the Extension Editor.
  3. Click on the Feature Contributions tab.
  4. Scroll away.

ext

Settings

You can configure your settings by modifying your User or Workspace Settings. To navigate to your settings, open the Command Palette (Ctrl+Shift+P) and search for “settings”. The simplest way to modify your settings is through “Preferences: Open Settings (UI)”.

NOTE: Most of these settings don't apply if you are using gopls. Learn more about gopls-specific settings in this documentation.

A list of popular and notable settings can be found below.

docsTool

One of "godoc", "gogetdoc", or "guru" (gogetdoc is the default). This is the tool used by the go to definition, signature help, and quick info on hover features. See more information about each of these tools in the Documentation section.

formatTool

One of "gofmt", "goimports", "goreturns", and "goformat" (goreturns is the default). This is the tool used by the formatting and import organization features. See more information about each of these tools in the Formatting section.

lintTool

One of "golint", "staticcheck", "golangci-lint", and "revive" (golint is the default). This is the tool used by the lint-on-save feature. See more information about each of these tools in the Diagnostics section.