5

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.

el-teedee
  • 1,293
  • 1
  • 15
  • 27
Chris Mantle
  • 6,595
  • 3
  • 34
  • 48
  • 3
    You can use the "Link with Editor" button (two arrows) above the Tree. – Grim Oct 25 '13 at 14:05
  • 1
    A cursory search on Google found this: http://www.eclipseonetips.com/2010/01/06/instantly-show-a-classfile-in-the-packageproject-explorer-in-eclipse/ – bedwyr Oct 25 '13 at 14:07
  • Seems my Google-Fu failed me this time - slightly different terminology :) Thanks all. – Chris Mantle Oct 25 '13 at 14:20

4 Answers4

13

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.

Chris Mantle
  • 6,595
  • 3
  • 34
  • 48
fred02138
  • 3,323
  • 1
  • 14
  • 17
  • 1
    What is the name of the "navigation" menu that appears on ALT+SHIFT+W ? Thanks for the tips, didn't know it (a shortcut fan) – el-teedee Sep 03 '18 at 11:33
3

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.

Dan D.
  • 32,246
  • 5
  • 63
  • 79
2

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.

David
  • 19,577
  • 28
  • 108
  • 128
2

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.

Community
  • 1
  • 1
geof
  • 21
  • 1