Is there a key shortcut or a IntelliJ IDEA plugin that will let me collapse all folders in the "Project" view in IntelliJ?
To collapse or expand all code fragments, press Ctrl+Shift+NumPad - / Ctrl+Shift+NumPad + . IntelliJ IDEA collapses or expands all fragments within the selection, or, if nothing is selected, all fragments in the current file, for example, all methods in a file.
Expand/collapse folders icons to expand or collapse a selected folder. Right-click a folder and choose Expand > Folder or Collapse > Folder to expand/collapse the selected folder. Right-click a folder and choose Expand > Expand All or Collapse > Collapse All to expand or collapse the entire tree.
Just click the tree item you want to expand (for example src ) in project view, press and hold the * key and all nodes will be expanded pretty quickly.
you can use Ctrl+Shift+Minus to collapse all of them and then use Ctrl+Alt+Plus to open one of that recursively.
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).
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