如何修改 Eclipse IDE 中的键盘快捷键?

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

How to modify the keyboard shortcuts in Eclipse IDE?

eclipsekeyboard-shortcuts

提问by shsteimer

Title more or less says it all. Specifically, I've become increasingly annoyed that in order to run an ant script I have to use Alt+Shift+x, q. But I think If I had this power I would many things I would change the shortcuts for/add shortcuts for things that don't currently have them.

标题或多或少说明了一切。具体来说,我越来越恼火,为了运行 ant 脚本,我必须使用Alt+ Shift+ x, q. 但是我认为如果我拥有这种能力,我会在很多事情上更改快捷方式/为当前没有快捷方式的事物添加快捷方式。

回答by Dave Ray

Window > Preferences > General > Keys

窗口 > 首选项 > 常规 > 按键

In particular, edit the "Run Ant Build" command.

特别是,编辑“Run Ant Build”命令。

回答by paul

For Windows:

对于 Windows:

Window > Preferences > General > Keys

窗口 > 首选项 > 常规 > 按键

回答by pjcarly

For mac that would be

对于 mac 那将是

Eclipse > Preferences > General > Keys

Eclipse > 首选项 > 常规 > 键

回答by Jainendra

Pressing Ctrl+ Shift+ Lwill open the current list of defined shortcuts, again pressing Ctrl+ Shift+ Lwill open preference page from where the shortcuts can be modified.

Ctrl+ Shift+L将打开定义快捷键的当前列表,再次按下Ctrl+ Shift+L将打开从那里的快捷键可以修改首选项页面。

回答by JohnnyO

As a side note make sure your newly mapped Shortcut won't have any conflicts on the right of the Keys window/menu.

作为旁注,请确保您新映射的快捷方式在“按键”窗口/菜单的右侧没有任何冲突。

If so choose a combination that will work; doesn't have any conflicts with existing ( default ) settings.

如果是这样,请选择一个有效的组合;与现有(默认)设置没有任何冲突。

Hope this helps.

希望这可以帮助。