Mac OSX 中的 Eclipse 键盘快捷键

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/493838/
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 18:36:20  来源:igfitidea点击:

Eclipse Keyboard shortcuts in Mac OSX

eclipsemacos

提问by Ish

I'm running Leopard and do all my Java development in eclipse. Some of the shortcuts work such as Command-1 which will do a quick suggest. However how do I get the Function Keys (F5 for refresh in the package explorer) to work? Right now it brings up spaces or whatever System Preferences maps to that.

我正在运行 Leopard 并在 Eclipse 中完成我所有的 Java 开发。一些快捷方式有效,例如 Command-1,它会提供快速建议。但是,如何使功能键(在包浏览器中刷新 F5)起作用?现在它会显示空格或任何系统偏好设置映射到它。

What about Control-click into a breakpoint when I'm debugging and want to go directly to the chosen function? Is there a way for my eclipse keyboard shortcuts to take precedence over other programs?

当我在调试并想直接转到所选函数时,按住 Control 单击进入断点怎么样?有没有办法让我的 eclipse 键盘快捷键优先于其他程序?

i'm running eclipse 3.4 though I've had this problem since eclipse 3.2.

我正在运行 eclipse 3.4,尽管我从 eclipse 3.2 开始就遇到了这个问题。

回答by sal

Its been a while since I used eclipse on the mac but I think you have to go to Preferences.app and check the "keyboard" pane. There should be an option that chooses if its Fn-function-key or just function-key for the key press. After that, it would be Fn+F5for expose and just F5for F5. You will lose the ability to dim the screen and adjust the sound from the keyboard.

自从我在 mac 上使用 eclipse 已经有一段时间了,但我认为您必须转到 Preferences.app 并检查“键盘”窗格。应该有一个选项可以选择是 Fn-function-key 还是只是用于按键的功能键。之后,它将 Fn+F5用于暴露和仅 F5用于 F5. 您将无法调暗屏幕和调整键盘的声音。

回答by Jason Punyon

In system preferences under keyboard there is a toggle to turn the f keys into real function keys

在键盘下的系统首选项中,有一个开关可以将 f 键变成真正的功能键

回答by Dana the Sane

Are you using a macbook? In OO.org at least, you have to press fn-fx to get at the application short-cut, otherwise you get the system-wide one.

你用的是macbook吗?至少在 OO.org 中,您必须按 fn-fx 才能获得应用程序的快捷方式,否则您将获得系统范围的快捷方式。

回答by Uri

This doesn't sound like an Eclipse problem.

这听起来不像是 Eclipse 问题。

Are you using an External Keyboard or a macbook ?

您使用的是外接键盘还是 macbook?

If you want to use the debuggers and stuff, you need to change the interpretation of the function keys. You have to manually hit the FN key on your laptop keyboard. Some external keyboards have a function lock.

如果要使用调试器之类的东西,则需要更改功能键的解释。您必须手动按下笔记本电脑键盘上的 FN 键。某些外接键盘具有功能锁。

回答by Uri

What about the control click and going directly to the function? That works on the windows version of eclipse, but I can't seem to get it working in Mac OSX. Tried: command click = nothing option click = nothing control click = opens context menu (like clicking the right mouse button)

控件点击直接进入功能怎么样?这适用于 eclipse 的 windows 版本,但我似乎无法在 Mac OSX 中使用它。尝试:命令点击=无选项点击=无控制点击=打开上下文菜单(如单击鼠标右键)

回答by Turgay Celik

You can change system level default behaviour from preferences as @sorin explained. A correction to the claim in the last sentence, "You can use Fn-function-key to dim the screen and adjust the sound from the keyboard."

正如@sorin 解释的那样,您可以从首选项更改系统级默认行为。更正最后一句中的声明,“您可以使用Fn-function-key 使屏幕变暗并调整键盘的声音。”