Distraction Free Mode in IntelliJ IDEA

Hide all UI elements (tool windows, toolbars, and editor tabs) so the editor occupies the entire main window with the source code centered.

Use ^` (macOS), or Ctrl+` (Windows/Linux), to bring up the Quick Switch Schema dialog.

You can now press 4 or use the arrow keys to scroll to 4 and select View Mode to see list of view modes available. Now press 2 or click on Enter Distraction Free Mode to display just your editor window and focus on coding.

In Depth

Alternative Ways of Entering Distraction Free Mode

Using View Toolbar Options

You can use the menu View > Appearance > Enter Distraction Free Mode.

Enter Distraction Free Mode using View Toolbar

Using Search Everywhere

Use ⇧⇧ (macOS), or Shift+Shift (Windows/Linux), to bring up the Search Everywhere dialog. You can now search for Distraction and select Enter Distraction Free Mode.

Enter Distraction Free Mode using Search Everywhere

Exiting Distraction Free Mode

You can follow anyone of the above-mentioned ways to exit Distraction Free Mode.

Using the Quick Switch Schema

You can use the same shortcuts as above, ^` (macOS), or Ctrl+` (Windows/Linux), to bring up the Quick Switch Schema dialog, then select 4 followed by 2 to exit distraction free mode.

Exit Distraction Free Mode from Quick Switch Schema

Using View Toolbar Options

Alternately, you can also use the menu View > Appearance > Exit Distraction Free Mode.

Exit Distraction Free Mode using Toolbar Options

Using Search Everywhere

Use ⇧⇧ (macOS), or Shift+Shift (Windows/Linux), to bring up the Search Everywhere dialog. You can now search for Distraction and select Exit Distraction Free Mode.

Toggle Distraction Free Mode using Search Everywhere

Alternatively, you can use ⌘⇧A (macOS), or Ctrl+Shift+A (Windows/Linux), to bring up the Find Actions dialog which will filter the Search Everywhere dialog to just Actions.