Intellij, project navigation. Expand all folder and file tree

前端 未结 7 1123
暖寄归人
暖寄归人 2020-12-13 01:49

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 fol

相关标签:
7条回答
  • 2020-12-13 02:24

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

    0 讨论(0)
  • 2020-12-13 02:26
    1. Go to File > Settings/Preferences
    2. Select Keymap
    3. In the search dialog search for "Fully Expand Tree Node". You will find the shortcut used for it.

    To create your own keyboard shortcut for it:

    1. Right-click on the item you found in step 3 mentioned above and select Add Keyboard Shortcut
    2. On the Keyboard Shortcut dialog, press your desired shortcut keys (for example Alt + E).
    3. If it is not already assigned, save your changes and select the folder you want to extend and press the shortcut you created.

    0 讨论(0)
  • 2020-12-13 02:33

    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.

    0 讨论(0)
  • 2020-12-13 02:34

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

    0 讨论(0)
  • 2020-12-13 02:37

    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

    0 讨论(0)
  • 2020-12-13 02:44

    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.

    0 讨论(0)
提交回复
热议问题