85

What is the name of the command (or a keyboard shortcut) for jumping to a file in Eclipse? I've seen Ctrl+Shift+R, but neither this nor Cmd+Shift+R work on Mac.

L Y E S - C H I O U K H
  • 4,765
  • 8
  • 40
  • 57
Aneil Mallavarapu
  • 3,485
  • 5
  • 37
  • 41

6 Answers6

87

CMD+SHIFT+r should work on the Mac

Amir Afghani
  • 37,814
  • 16
  • 84
  • 124
56

It's called "Open Resource". It's under category 'Navigate' when "In Windows" for my binding.

Shadwell
  • 34,314
  • 14
  • 94
  • 99
14

Other nifty shortcuts are listed here:

https://rayfd.wordpress.com/2007/05/20/10-eclipse-navigation-shortcuts-every-java-programmer-should-know/

With Ctrl-Shift-R (jump to file) and Ctrl-T (pop-up type hierarchy) I can happily spend most of my time with only the Editor view showing. You might have to modify them a bit for Mac.

z0r
  • 8,185
  • 4
  • 64
  • 83
3

Browsing directly from Preferences->Keys, the combination is CMD+Shift+R

elmandr
  • 31
  • 1
1

How to open file in eclipse shot cut way Ans. ctrl+shift+T to open file in eclipse

Developer Guy
  • 2,318
  • 6
  • 19
  • 37
Pooja
  • 11
  • 1
  • The question was about "go to file" not "open file". I don't use Eclipse so don't know if these are different features but judging by the answers already posted, they are? – Stephen Kennedy Apr 20 '18 at 11:14
0

As Amir pointed out CMD + Shift + R should work. If you are looking to not just see the code, but see where the code is in the project, you'll want to make sure your Project Explorer has Link with Editor enabled. Which is at the top right of the Project Explorer tab.

enter image description here

Agilanbu
  • 2,747
  • 2
  • 28
  • 33
James Oravec
  • 19,579
  • 27
  • 94
  • 160