# Configuring code coverage measurement

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

Procedure: Configure code coverage behavior

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) to open settings and then select `Build, Execution, Deployment | Coverage`.

2. Choose how to display new coverage results when a coverage suite is already active:

* Show options before applying coverage to the editor: show the Code Coverage dialog to choose how to display the new results.

* Do not apply collected coverage: keep the current coverage display without showing the new results.

* Replace active suites with the new one: show only the new suite. The previous suites remain available.

* Add to the active suites: add new code coverage suites to the active suites every time you launch a new run configuration with code coverage.

These options do not delete coverage data. You can select saved suites in `Run | Manage Coverage Reports`. If no suite is active, GoLand displays the new results automatically.

3. Select the Activate Coverage View checkbox to open the [Coverage](coverage-tool-window.html) tool window automatically.

Procedure: Change colors of the coverage highlighting

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) to open settings and then select `Editor | Color Scheme  | General`.

2. Alternatively, click ![the Edit Coverage Colors button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg) in the popup that opens on clicking the coverage indication line in the gutter.

3. In the list of components, expand the Line Coverage node and select a type of coverage: for example, Full, Partial or Uncovered.

4. Click the Foreground field to open the Select Color dialog.

5. Select a color, apply the changes, and close the dialog.

![Configure code coverage colors](https://resources.jetbrains.com/help/img/idea/2026.3/go_coverageColors.png)

## See also

### Concepts

[Run/debug configurations](run-debug-configuration.html)

