Scratches right-click file or folder missing Delete option

It used to be at the top level or in the Refactor sub-menu as "Safe Delete"... now it's gone.

Even if I try from the Project panel, it's gone. I'm not sure what happened.

The only way I can remove it is to delete the file or folder in Windows Explorer by going to C:\Users\Me\AppData\Roaming\JetBrains\PhpStorm2020.3\scratches

0

Hi there,

1) You are calling that menu on Favorites and not directly on the Scratches (Project View panel)

2) Looks like you are calling that menu for a folder

3) It's still there for a file here:

But yes, the "Delete" option is not available when calling on a folder in Favorites tool window (Delete key here removes this entry from Favorites) but present if used via Project View panel.

When doing the same on a scratch file: in Project View both "Delete" and "Refactor | Safe Delete" is available while in Favorites it's only "Refactor | Safe Delete".

PhpStorm 2020.3.1

0

No Delete option would show when right-clicking the file from either Project or Favorites... but I noticed some files/folders it would show "Safe Delete" or "Delete". I can't explain why they're different or why any Delete wouldn't show on files or folders. I shouldn't be restricted to delete any of them because I made them.

Right now, Delete is showing when in Project panel... but I used to have that option or Safe Delete in Favorites, but now it's not there. I can't explain this.

In any case, I'm not sure why "Safe Delete" would show on Scratches files, because they're not compiled or run (are they?), and they're not programmatically or operationally related, they're just notes. Hitting the Delete key on a file or folder in Favorites does nothing, though it used to show a delete prompt (Safe Delete I think).

Also, it's strange that the Project panel non-Scratch file/folder right-click has "Delete..." but also Refactor > Safe Delete. I'd think these would only have Safe Delete. I'm completely confused at PHPStorm's logic right now.

0

In any case, I'm not sure why "Safe Delete" would show on Scratches files, because they're not compiled or run (are they?), and they're not programmatically or operationally related, they're just notes.

  • You can run/debug them.
  • You can refactor them (move/copy)
  • You can compile them (e.g. Java / Kotlin)

P.S. There are Scratch Files .. and Scratch Buffers. Buffers are just notes (in other words: files with .txt extension).

https://www.jetbrains.com/help/phpstorm/scratches.html

https://blog.jetbrains.com/idea/2020/11/scratch-files-and-scratch-buffers/

0

请先登录再写评论。