Reputation: 5224
IntelliJ IDEA knows scratch files
and scratch buffers
.
This menu show the search action result:
Both scratch types show up under the Scratches and Consoles
tree entry:
What is the difference between scratch file and scratch buffers?
When should I choose one over the other?
Upvotes: 3
Views: 529
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