Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

eclipse

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.

like image 408
Chris Mantle Avatar asked Oct 25 '13 14:10

Chris Mantle


People also ask

How do I navigate to project Explorer in Eclipse?

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.

What is the shortcut key for search in Eclipse?

If you want to use the type-specific search (Java, Javascript ...etc) you can use Ctrl+H , which opens the search dialog, then click the Search button. If you simply want to search for all text occurrences in the whole the workspace click the word (or select the text) you want to search then hit Ctrl+Alt+G .

How do I show hidden project Explorer in Eclipse?

Select Window->Show View, if it is not shown there then select other. Under General you can see Project Explorer.


4 Answers

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.

like image 60
fred02138 Avatar answered Oct 02 '22 18:10

fred02138


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.

like image 23
Dan D. Avatar answered Oct 02 '22 20:10

Dan D.


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.

like image 25
david99world Avatar answered Oct 02 '22 20:10

david99world


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.

like image 28
geof Avatar answered Oct 02 '22 18:10

geof