Intellij, project navigation. Expand all folder and file tree

天涯浪子 提交于 2019-11-28 17:24:36

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 14

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]".

Now, you can expand the entire directory structure in IntelliJ. All you need to do is to select the project in project explorer and hold Right Arrow button. It will expand all the files in that project.

I'm using v14. The title bar>Settings(icon) has an AutoScroll from Source option which, if checked, drops down the subordinate files in the tree. Is this what you are looking for? HTH

I use a simple approach. In my Mac, I've set a key map.

Using only Right Arrow expands folder (but sub-folders are not expanded).

So I've set a key map in Fully Expand Tree Node to CMD+Right Arrow to expand selected folder and all its sub-folders fully. To close/collapse it, simply use Left Arrow.

Without setting keymap

If you think you won't use this feature often, I'd rather go with just selecting the folder you want to fully expand, pressing double shift and search for "Fully Expand Tree Node".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!