Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 566
meva Avatar asked Jul 01 '10 16:07

meva


People also ask

How do I search all folders in Eclipse?

The Eclipse search dialog box allows you to search for files that contain a literal or a character pattern in the entire workspace, a set of projects, a specific project or folders selects in the package explorer view. Clicking on the Search menu and selecting Search or File or Java. Clicking Ctrl + H.

How do I expand all methods in Eclipse?

Right click on the +/- sign and click collapse all or expand all.

How do I expand all sub folders?

You can also use the following keyboard shortcuts: To open all folders at the same level as the current folder, press ALT+SHIFT+RIGHT ARROW. To close all folders at the same level as the current folder, press ALT+SHIFT+LEFT ARROW.

How do I maximize project explorer in Eclipse?

windows->navigation->maximize active View or Editor(ctrl + M) .


2 Answers

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.

like image 95
Lindsay Avatar answered Oct 09 '22 02:10

Lindsay


On Mac: Select a folder and press Option+ARROW_RIGHT to expand all subfolders in the Eclipse file explorer. Press Option+ARROW_LEFT to collapse all subfolders.

On some Mac keyboards the Option key is also labeled Alt

like image 39
Jeremias Erbs Avatar answered Oct 09 '22 03:10

Jeremias Erbs