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
Disable Focus on Active Task option - shown below.
Shift + Right arrow, repeatedly.
shift + * Expand ALl
Shift _ - Collapse All
that's it.
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.
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
On Mac: Select a folder and press Alt+ARROW_RIGHT. That should expand all subfolders in the file explorer of eclipse.