Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I collapse all folders in IntelliJ IDEA?

Is there a key shortcut or a IntelliJ IDEA plugin that will let me collapse all folders in the "Project" view in IntelliJ?

like image 985
John Egbert Avatar asked May 29 '15 23:05

John Egbert


People also ask

How do I collapse all 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.

Is there a way to collapse folders?

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.

How do I expand all folders in IntelliJ?

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.

How do I collapse all JSON in IntelliJ?

you can use Ctrl+Shift+Minus to collapse all of them and then use Ctrl+Alt+Plus to open one of that recursively.


1 Answers

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).

like image 111
Darek Kay Avatar answered Sep 21 '22 02:09

Darek Kay