Is there a shortcut to delete the currently open file in PHPStorm?
External tools can solve this.
- Create an external tool. The program to run is rm, and for the parameters use the $FilePath$ macro. I also tell it not to open the console.
- Add a shortcut in keymap to this external tool to quickly delete the current file open in the editor.
Yes, there is:
Press Alt+Home to focus the navigation bar. (⌘+↑ on Mac)
Then press Delete. (⌘+⌫ on Mac)
Even if the navigation bar is turned off, it'll pop up over the editor window.