When I navigate to a file deep in directories with Ctrl+Shift+N, I see that the file can be deleted, so I navigate to the project pane, and open all the nested directories and then finally delete the file, which is annoying.
Is there a keyboard shortcut to just delete the file currently open in the editor?
Select the item to be deleted. Do one of the following: Press Alt+Delete . Select Refactor | Safe Delete from the main or the context menu.
shift+F6. rename. ctrl+shift+r. ctrl+shift+N. find file / open resource.
Sometimes code formatting can get out of sync, but there's an easy fix in IntelliJ IDEA. You can use ⌘⌥L (macOS), or Ctrl+Alt+L (Windows/Linux) to reformat a selection of code according to your reformat settings.
I use Ctrl+D to add to selection (discrete multiple select) the next occurrence of the string (or substring) highlighted.
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.
External tools can solve this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With