Eugene
Eugene

Reputation: 60234

Shortcut to close all opened files in IntelliJ

Is there a shortcut in IntelliJ IDEA to close all opened windows?

Upvotes: 32

Views: 18551

Answers (5)

wenhx
wenhx

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

Shiv Shankar Keshari
Shiv Shankar Keshari

Reputation: 69

I did it in my Pycharm by adding a keyword shortcut:

  1. Go to Settings by ctrl+Alt+S

  2. Go to keymap where you can search (close all) and add your desire shortcut key for it.

Upvotes: 1

Kellen Stuart
Kellen Stuart

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

Surendra Konathala
Surendra Konathala

Reputation: 119

You can also close all open files from Menu > Window > Editor tabs > Close all (or on mac: Command + F4)

Upvotes: 11

CrazyCoder
CrazyCoder

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

Related Questions