简体   繁体   English

在Mac OS X上的Eclipse中转到文件的键盘快捷方式是什么?

[英]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? 在Eclipse中跳转到文件的命令(或键盘快捷键)的名称是什么? I've seen Ctrl + Shift + R , but neither this nor Cmd + Shift + R work on Mac. 我见过Ctrl + Shift + R ,但是在Mac上,这和Cmd + Shift + R都不起作用。

CMD + SHIFT + r应该可以在Mac上使用

It's called "Open Resource". 它称为“开放资源”。 It's under category 'Navigate' when "In Windows" for my binding. 当我在Windows中绑定时,它位于“导航”类别下。

Other nifty shortcuts are listed here: 其他漂亮的快捷方式在这里列出:

https://rayfd.wordpress.com/2007/05/20/10-eclipse-navigation-shortcuts-every-java-programmer-should-know/ 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. 使用Ctrl-Shift-R (跳至文件)和Ctrl-T (弹出式层次结构),我可以很开心地度过大部分时间,而只显示“编辑器”视图。 You might have to modify them a bit for Mac. 对于Mac,您可能需要对其进行一些修改。

直接从“首选项”->“键”浏览,组合为CMD + Shift + R

How to open file in eclipse shot cut way Ans. 如何用eclipse镜头剪切方式Ans打开文件。 ctrl + shift + T to open file in eclipse Ctrl + Shift + T在Eclipse中打开文件

As Amir pointed out CMD + Shift + R should work. 正如Amir指出的那样, CMD + Shift + R应该有效。 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. 如果您不仅要查看代码,而且要查看代码在项目中的位置,则需要确保Project Explorer启用了Link with Editor Which is at the top right of the Project Explorer tab. Project Explorer选项卡的右上角。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM