Chris Mantle
Chris Mantle

Reputation: 6683

How to locate current file in Eclipse Project Explorer view using keyboard shortcut?

As a user of ReSharper in Visual Studio, I find the Locate in Solution Explorer shortcut, (Shift+Alt+L), immensely useful. Is there an equivalent in Eclipse to locate the current file in the Project Explorer?

A Google search and a quick root around in the Keys preferences window suggested there wasn't, but perhaps I just couldn't find it.

Upvotes: 5

Views: 5252

Answers (4)

fred02138
fred02138

Reputation: 3361

The default setting is Alt+Shift+W. But you can set any key combination you like to the command "Show In (Project Explorer)" from the Preferences | General | Keys dialog.

Upvotes: 14

geof
geof

Reputation: 21

answer is here Eclipse : Link with editor keyboard shortcut?

There is not by default, but you can define this yourself. Go into Preferences -> General -> Keys, and then type "link" into the search box. You want the "Toggle Link with Editor" command. You can then define the key binding by filling in the "Binding" box below.

Upvotes: 2

David
David

Reputation: 20063

If you press the buttons ctrl-shift-r you get access to open a resource in a project. If you then have the two double arrows clicked in the project explorer, you will go straight to that file.

Upvotes: 2

Dan D.
Dan D.

Reputation: 32391

I am not sure about a shortcut key, but there is a small button in the "Package Explorer" toolbar with two arrows. If you press that toggle button then the Package Explorer will select the currently editing file.

Similar for the Project Explorer view.

Upvotes: 4

Related Questions