Reputation: 62519
I have created a few scratch files in android studio (fork of Intellij). by going to tools-->new scratch file.
But now i have soo many scratch files and i dont know how to delete them since they auto save. Can anyone help ?
Some info: scratch files are used to prototype code without it actually mingling with your exisiting code. Its like a notepad which auto saves.
Upvotes: 7
Views: 5414
Reputation: 1667
It's also possible to have the file deleted automatically by clearing the content before the tab is closed:
IntelliJ IDEA numbers scratch files sequentially starting from 1. If you close a tab with an empty scratch file, IntelliJ IDEA deletes it.
https://www.jetbrains.com/help/idea/scratches.html#create-scratch-buffer
Upvotes: 2
Reputation: 99
Upvotes: 3
Reputation: 1379
To delete a scratch file or buffer, follow these steps:
Source: https://www.jetbrains.com/help/idea/15.0/scratches.html?origin=old_help#d640596e253
I was also able to do it by pressing cmd+E (for mac) to open the recent files popup. Then select the line and hit the delete key.
Upvotes: 16