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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3859632/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:39:42  来源:igfitidea点击:

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

eclipsemacos

提问by Aneil Mallavarapu

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+Rwork on Mac.

在 Eclipse 中跳转到文件的命令(或键盘快捷键)的名称是什么?我见过Ctrl+ Shift+ R,但是这和Cmd+ Shift+R在 Mac 上都不起作用。

采纳答案by Shadwell

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

它被称为“开放资源”。当我的绑定处于“在 Windows 中”时,它位于“导航”类别下。

回答by Amir Afghani

CMD+SHIFT+r should work on the Mac

CMD+SHIFT+r 应该可以在 Mac 上工作

回答by z0r

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. You might have to modify them a bit for Mac.

使用Ctrl-Shift-R(跳转到文件)和Ctrl-T(弹出类型层次结构),我可以愉快地将大部分时间花在只显示编辑器视图上。对于 Mac,您可能需要对它们进行一些修改。

回答by elmandr

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

直接从Preferences->Keys浏览,组合是CMD+Shift+R

回答by Pooja

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

如何在eclipse中打开文件的截图方式Ans。ctrl+ shift+T在Eclipse中打开文件

回答by James Oravec

As Amir pointed out CMD+ Shift+ Rshould 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 Explorerhas Link with Editorenabled. Which is at the top right of the Project Explorertab.

正如阿米尔指出CMD+ Shift+R应该工作。如果您不仅要查看代码,还要查看代码在项目中的位置,则需要确保Project ExplorerLink with Editor启用。它位于Project Explorer选项卡的右上角。

enter image description here

在此处输入图片说明