Is there way to expand all folders in Eclipse project view and search results?

前端 未结 12 860
谎友^
谎友^ 2020-12-13 01:59

I\'m spending a lot of time manually expanding deeply-nested folders in tree views like the Project Explorer and the File Search result tree. Is there a keyboard shortcut or

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

    In "File Seach Result", right click on the top level folder, there is an "expand all" menu entry.

    In the project view, I didn't find the feature.

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

    Mars.1 Release (4.5.1), Linux (RHEL 6.7)

    Expand Folders

    Tap * once for each level that all folders under the selected folder should be expanded. For example, tapping * three times will expand all folders out to three levels.

    (CTRL SHIFT Numpad * doesn't work for me as it should with this particular build/machine.)


    Collapse All Folders

    Tap Numpad / once to collapse all folders under the selected folder.


    Expand/Collapse Single Folders

    Shift + Right Arrow
    Shift + Left Arrow

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

    If you want to simply search a file anywhere: CTRL + SHIFT + R (Faster workspace navigation)

    Collapse All: Shift + NUM-KEYPAD-MULTIPLY (*) -->Use with caution, if you do it on a large project, ALL the files will be expanded! Just managed to crash my Eclipse!

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

    buttons to expand all
    Shift and (+)

    buttons to minimize all
    Shift and (-)

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

    Following works for Eclipse 4.4 on Linux:

    Pressing * (or shift+) repeatedly while a folder is selected expands it's contents.

    Pressing - (or shift+) collapses all content.

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

    In Windows:

    Expand all all in project explorer is Shift+Numpad * (multiplty), as mentioned before. Collapse all in project explorer is Ctrl+Shift+Numpad - (subtract).

    Alternatively, you can just jam on the right arrow to expand to the bottom of a selected tree, or jam on the left arrow to collapse back up to the top.

    If you want to see all the shortcuts available for the particular context you are in, type Ctrl+Shift+L.

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