views:

18

answers:

2

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 menu command to expand all folders?

A: 

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! :P

zengr
It appears that CTRL-SHIFT-R (or CMD-SHIFT-R on Mac OS X) searches filenames only. I'm trying to search within files like grep.The keyboard shortcut you mentioned is documented as Expand All, not Collapse All, and it doesn't work on Mac OS X. And as I've learned how to customize keyboard shortcuts since asking this question, I tried creating several different shortcuts for Expand All and none of them seem to work.
meva
A: 

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

For project , i didn't find the feature.

dweeves
There's also a small "+" icon at the top right of the window that has the same function. Thanks.
meva