Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij, project navigation. Expand all folder and file tree

Is it possible to expand the entire project tree in Intellij? I would like to do this so I can more easily search the structure and jump back and forth between files and folders.

I know of double shift, and CTRL+SHIFT+N, but that is not what I am after.

like image 688
mjs Avatar asked Dec 06 '14 17:12

mjs


People also ask

How do I change project structure view in IntelliJ?

To change settings of a module that hosts the file you are currently editing, just press Alt+F1, 7 or open the View menu, select Select In and click Project Structure. IntelliJ IDEA will open the Project Structure dialog and jump to the required module.

How do I change folder structure in IntelliJ?

From the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Modules. Select the necessary module and open the Sources tab. to the right of the necessary folder (folder path). Specify the path relative to the output folder root, and click OK.

How do I see all projects in IntelliJ?

From the main menu, select Navigate | Search Everywhere or press Shift twice to open the search window. By default, IntelliJ IDEA displays the list of recent files.

How do I search all folders in IntelliJ?

Use ⇧⇧ (macOS), or Shift+Shift (Windows/Linux), to bring up the Search Everywhere dialog. You can search across Classes, Files, Symbols and Actions. You can also use forward slash to filter the results to a specific area, such as /editor.


2 Answers

There is a Fully Expand Tree Node action, which is bound to Numpad * key (*) by default.

But if you use this key, it doesn't expand the whole tree, rather it expands the first level and when you press it again it expands subsequent levels, and so on.

But it can still do what you're trying to achieve. 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. It's not the best way but I'm not aware of any better solution.

Tested on IntelliJ IDEA 14 and 2019.3.3 Ultimate

If you press *: Expand 1 level.

If you press * *: Expand 2 levels.

If you press * * *: Expand 3 levels.

and so on.

like image 182
Bohuslav Burghardt Avatar answered Sep 28 '22 05:09

Bohuslav Burghardt


You can use right-arrow button to expand the selected node,and keep pressing to expand all node.

Or

Search "Fully Expand Tree Node" in settings->Keymap,find the keyshort,use it,it will expand nodes level by level.The other two command within Others is not useful.

And you can also set mouse shortcut like "ALT+[Wheel Down]",this can help you expand all without one hand leaving the mouse. More efficient,you can Set "Collapse Node" keyshort to "ALT+[Wheel Up]".

like image 26
zwx Avatar answered Sep 28 '22 04:09

zwx