Peter
Peter

Reputation: 5224

IntelliJ IDEA: Difference between scratch buffer and files

IntelliJ IDEA knows scratch files and scratch buffers.

This menu show the search action result: enter image description here

Both scratch types show up under the Scratches and Consoles tree entry: enter image description here

What is the difference between scratch file and scratch buffers?

When should I choose one over the other?

Upvotes: 3

Views: 529

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402493

Scratch Buffers are limited to 5 max and if you invoke this action again when 5 buffers are already created, you will switch to buffer 1. Scratch Files are unlimited and will not reuse existing files.

Scratch buffers are also Plain Text only, while Scratch Files can have different type that you choose when creating a new scratch file.

Upvotes: 5

Related Questions