# Console

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

> **TL;DR**
> `File | Settings | Editor | General | Console` for Windows and Linux
>
>
>
> `GoLand | Settings | Editor | General | Console` for macOS
>
>
>
> [Settings… shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "ShowSettings") ![the Settings icon](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)

Use this page to configure how GoLand displays [console output](https://www.jetbrains.com/help/go/terminal-emulator.html.md). These settings control folding, wrapping, and trimming lines, which makes console output easier to read and comprehend.

<a id="fold-the-gosetup-output"></a>

Procedure: Fold the #gosetup output

If you experience problems with folding of the #gosetup output, try to switch off the `go.run.processes.with.pty` setting.

1. Click `Help | Find Action`.

2. In the search field, type `Registry` and press [Enter shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "EditorEnter").

3. Type `go.run.processes.with.pty`.

4. Set the switch to the OFF position.

![The Editor | General | Console settings](https://resources.jetbrains.com/help/img/idea/2026.3/settings_editor_general_console.png)

Use soft wraps in console
: Wrap long lines in the console output at word boundaries.

Console commands history size
: Specify how many console commands to include and display in the console history.

Override console cycle buffer size (1024 KB)
: Delete old messages when the console buffer size exceeds the specified value.

Default Encoding
: Select the encoding that GoLand should use to view console output. By default, it uses the system encoding.

Fold console lines that contain
: Configure a list of patterns for lines that you want to fold in the console output. Use `*` as a wildcard. See [Folding patterns](#folding-patterns).

Exceptions
: Configure a list of patterns for lines that you don't want to fold in the console output. See [Folding patterns](#folding-patterns).

<a id="folding-patterns"></a>

## Folding patterns

Use the following buttons to manage the folding patterns from the two lists:

![The Add button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg) Add [New… shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "NewElement")
: Open the Folding Pattern dialog and type a new pattern.

![The Edit button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.edit.svg) Remove [New… shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "NewElement")
: Remove the selected pattern from the list.

![The Edit button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.edit.svg) Edit [Enter shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "EditorEnter")
: Open the Folding Pattern dialog and edit the selected pattern.

## See also

### Related

[Query consoles](https://www.jetbrains.com/help/go/query-consoles.html.md) [Console tab](https://www.jetbrains.com/help/go/debug-tool-window-console.html.md) [Console tab](https://www.jetbrains.com/help/go/version-control-tool-window-console-tab.html.md) [Run tool window](https://www.jetbrains.com/help/go/run-tool-window.html.md)

