ChatGPT解决这个技术问题 Extra ChatGPT

What is the keyboard shortcut to go to a file in Eclipse on Mac OS X?

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.

Open "Keys" in the preferences and search for it.
possible duplicate of Eclipse: quick search on filename

A
Amir Afghani

CMD+SHIFT+r should work on the Mac


It was CMD+T on my Mac - Eclipse 3.5.2
This command will not work if you need to search for generated source code.
In windows, it is Ctrl+Shift+R
Also Ctrl + Shift + R in Linux.
CMD + SHIFT + R = Open Resource ( Lists all files .txt, .yml, .java, etc.) CMD + SHIFT + T = Open Type ( Lists Java classes )
S
Shadwell

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


Thanks! (I found that it was bound to CMD-T)
Would never have thought of that .. "Resource"!! On my linux machine, I can't see the shortcuts with the menu items - is there some switch to turn it on ?
z
z0r

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.


this link is broken
e
elmandr

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


D
Developer Guy

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


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?
A
Agilanbu

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.

https://i.stack.imgur.com/6lhK1.png