Reputation: 60234
Is there a shortcut in IntelliJ IDEA to close all opened windows?
Upvotes: 32
Views: 18551
Reputation: 353
If you don't want to set a shortcut in the keymap because it's not easy to come up with a simple shortcut that is not already taken, you can press Alt key and click X on the active tab. This will close all inactive tabs. Then you can click the X again to close the current tab. That way, all tabs will be closed without much effort.
Upvotes: 0
Reputation: 69
I did it in my Pycharm by adding a keyword shortcut:
Go to Settings by ctrl+Alt+S
Go to keymap where you can search (close all) and add your desire shortcut key for it.
Upvotes: 1
Reputation: 8943
No default shortcut, but you can use the Search Everywhere shortcut to call it:
Shift + Shift + Type: Close All
+ Enter
Alternatively:
Ctrl + T + Type: Close All
+ Enter
One more way just for fun:
Ctrl + Shift + A + Type: Close All
+ Enter
If you use VIM:
ESC :qa
Upvotes: 9
Reputation: 119
You can also close all open files from Menu > Window > Editor tabs > Close all (or on mac: Command + F4)
Upvotes: 11
Reputation: 402503
There is no shortcut in the default keymap, but you can assign it in Keymap settings for the Close All action.
Upvotes: 38