Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij scratch files - how to delete them?

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.

like image 468
j2emanue Avatar asked Dec 10 '22 17:12

j2emanue


2 Answers

To delete a scratch file or buffer, follow these steps:

  1. Switch to the Scratches view of the Project tool window.
  2. Under the Scratches pseudo-folder, right-click the scratch to be deleted, and choose Delete on the context menu.
  3. Confirm deletion.

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.

like image 131
matmo Avatar answered Jan 08 '23 23:01

matmo


Switch to the Scratches view of the Project tool window.

  1. Switch to the Scratches view of the Project tool window.
  2. Under the Scratches pseudo-folder, right-click the scratch to be deleted, and choose Delete on the context menu.
  3. Confirm deletion.

enter image description here

like image 29
Muhammed Thasneem Avatar answered Jan 08 '23 23:01

Muhammed Thasneem