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

前端 未结 12 861
谎友^
谎友^ 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:48

    Disable Focus on Active Task option - shown below.

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

    Shift + Right arrow, repeatedly.

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

    shift + * Expand ALl

    Shift _ - Collapse All

    that's it.

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

    In Windows: ( I'm using STS v2.8 based on Eclipse 3.7, maybe a little different... )

    in Project/Package Explorer:

    Expand all : Shift + Numpad *

    Collpse all: Ctrl + Shift + Numberpad_Divide, or just click the small "-" icon at the top right of current view.

    But from wat I can see, Expand All action always make the Eclipse/STS not responding (e.x, we may set class files - compiled or in JARs - visible in current view, which cause too many file to be expanded), so maybe it's better to select specified package first.

    Also these shortcuts very helpful to locate files:

    Ctrl + Shift + R: open resource ( all file types, java, jsp, jspf, properties ...), it's my most frequent use and favorite shortcut;

    Ctrl + Shift + T: open type ( for Java files only)

    In Search result tab, there are Expand All(+ sign with border) and Collapse All(- sign with border) icons at the top right of the tab.

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

    Eclipse on Linux:

    SHIFT + RIGHT arrow

    Expand all folders below the selected folder. If you do it multiple times, next set of folders expand.

    SHIFT + LEFT arrow

    Collapses all folders below the selected folder.

    Eclipse on Windows:

    Right arrow -->> Expand
    Left arrow -->> Collapse

    0 讨论(0)
  • 2020-12-13 03:01

    On Mac: Select a folder and press Alt+ARROW_RIGHT. That should expand all subfolders in the file explorer of eclipse.

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