Shortcut to close all opened files in IntelliJ

2020-08-09 08:35发布

问题:

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

回答1:

There is no shortcut in the default keymap, but you can assign it in Keymap settings for the Close All action.



回答2:

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



回答3:

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



回答4:

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.