SparedWhisle
SparedWhisle

Reputation: 1440

In eclipse package explorer, how can I expand a tree in one click?

For example, I have a folder structure like this:

src
└─test
    ├─java
       └─com
           └─google
              └─test
                  │  AllTests.java

in order to see file AllTests.java, I need to click many times to expand the tree. I'm wondering if there is an option as "expand all" to expand the tree in 1 click.

Upvotes: 10

Views: 10542

Answers (4)

vlopezla
vlopezla

Reputation: 95

Using Eclipse Juno and Mac OS X 10.7.5 you can expand with Alt+Right, but this expand everything, including methods and variables.

Upvotes: 1

DLight
DLight

Reputation: 1825

Simply pressing Numpad_Multiply works for me for expanding all the subtree of the selected item in the package explorer, with Eclipse Luna.

Upvotes: 2

sakthisundar
sakthisundar

Reputation: 3288

Check out with Shift + Numpad_multiply for expanding all and Shft + Ctrl + Numpad_divide to collapse all

Upvotes: 8

Bananeweizen
Bananeweizen

Reputation: 22070

You can avoid the hierarchical layout by using the flat package presentation (which is default):

Screenshot

If you typically just want to find the file which you have currently opened in the editor, then please activate editor linking:

enter image description here

Upvotes: 11

Related Questions