Buffer files are reused after creating 5 files. So doing, after reuse, the content and language
are reset.

Creating scratch files

To create a scratch file

Do one of the following:

On the main menu, choose Tools | New Scratch File
.

Press Ctrl+Shift+Alt+Insert

Select the language of the future scratch from the list that IntelliJ IDEA suggests. IntelliJ IDEA creates a
temporary editor tab with the name scratch.<extension>. In the future,
the default names will be scratch_<number>.<extension>.

Creating scratch buffers

IntelliJ IDEA creates a temporary editor tab with the name buffer1. In the
future, the default names will be buffer<number>.

Type the desired code.

Note that though this action has no keyboard shortcut, you can still configure one as described in the section
Configuring Keyboard Shortcuts. You can also switch from scratch files to scratch buffers by reassigning the shortcut to
avoid garbage buildup.

Observing the available scratches

To observe the available scratch files and buffers, do one of the following: