# Console

> **TL;DR**
> `File | Settings | Editor | General | Console` for Windows and Linux
>
>
>
> `IntelliJ IDEA | Settings | Editor | General | Console` for macOS
>
>
>
> `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+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ![the Settings icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.settings.svg)

Use this page to configure how IntelliJ IDEA displays [console output](terminal-emulator.html). These settings control folding, wrapping, and trimming lines, which makes console output easier to read and comprehend.

![The Editor | General | Console settings](https://resources.jetbrains.com.cn/help/img/idea/2026.2/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 IntelliJ IDEA 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).

## Folding patterns

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

![The Add button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.add.svg) Add `Alt+Insert` (Windows), `⌘ N` (macOS), `⌃ N` (IntelliJ IDEA Classic (macOS)), `⌘ N` (macOS System Shortcuts), `Alt+Insert` (XWin), `Alt+Insert` (GNOME), `Alt+Insert` (KDE), `Alt+Insert` (Emacs), `Ctrl+N` (Sublime Text), `⌘ N` (Sublime Text (macOS)), `Alt+Insert` (NetBeans), `Ctrl+N` (Visual Studio), `⌘ N` (Visual Studio (macOS)), `Alt+Insert` (Eclipse), `⌘ N` (Eclipse (macOS))
: Open the Folding Pattern dialog and type a new pattern.

![The Edit button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.edit.svg) Remove `Alt+Insert` (Windows), `⌘ N` (macOS), `⌃ N` (IntelliJ IDEA Classic (macOS)), `⌘ N` (macOS System Shortcuts), `Alt+Insert` (XWin), `Alt+Insert` (GNOME), `Alt+Insert` (KDE), `Alt+Insert` (Emacs), `Ctrl+N` (Sublime Text), `⌘ N` (Sublime Text (macOS)), `Alt+Insert` (NetBeans), `Ctrl+N` (Visual Studio), `⌘ N` (Visual Studio (macOS)), `Alt+Insert` (Eclipse), `⌘ N` (Eclipse (macOS))
: Remove the selected pattern from the list.

![The Edit button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.edit.svg) Edit `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (NetBeans), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (Eclipse), `⏎` (Eclipse (macOS))
: Open the Folding Pattern dialog and edit the selected pattern.

## See also

### Related

[Query consoles](query-consoles.html)  [Console tab](version-control-tool-window-console-tab.html) [Run tool window](run-tool-window.html) [Hibernate console](working-with-the-hibernate-console.html) [JPA console](using-jpa-console.html)

