Is there a key shortcut or a IntelliJ IDEA plugin that will let me collapse all folders in the "Project" view in IntelliJ?
Asked
Active
Viewed 1.3k times
1 Answers
67
The action is called Collapse All
and the default shortcut is Ctrl + NumPad - on Windows and Cmd + - on Mac (the project view has to be focused).

Michiel Bakker
- 100
- 7

Darek Kay
- 15,827
- 7
- 64
- 61
-
Worked great. Thank you. – John Egbert Jun 01 '15 at 15:31
-
Thank you for the precise answer. – Sagiruddin Mondal Jun 01 '16 at 08:30
-
Is there a mouse shortcut like alt+click? – vaughan Mar 04 '18 at 14:24
-
`cmd + -` on macOS. – vaughan May 07 '18 at 09:46
-
1Doesn't look like you need Control in version 18. Just Numpad + and Numpad * will do the trick. Focus must be on project window – Dave Davis Oct 24 '18 at 17:46
-
Is there a button I can press to do that? I don't want a shortcut – ACV Jan 25 '19 at 09:17
-
@ACV sure, you can use custom toolbar or menu buttons. just add a "collapse all" action, see: https://www.jetbrains.com/help/idea/configuring-menus-and-toolbars.html – Darek Kay Jan 30 '19 at 12:35
-
Same default command works in PyCharm on Windows (they're both made by JetBrains) – trker Jun 26 '19 at 15:17
-
If the project view is not in focus then `⌘` `1` to focus on the project view first, afterwards `⌘` `-` to collapse. – snajahi Nov 04 '20 at 16:41