Eclipse 3.2 Java插件如何添加快捷键构建当前项目?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/168426/
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
How do I add a shortcut key to Eclipse 3.2 Java plug-in to build the current project?
提问by Simon
One of the few annoying things about the Eclipse Java plug-in is the absence of a keyboard shortcut to build the project associated with the current resource. Anyone know how to go about it?
关于 Eclipse Java 插件的少数令人讨厌的事情之一是缺少用于构建与当前资源相关联的项目的键盘快捷键。有谁知道该怎么做?
回答by KeithL
In the Preferences dialog box, under the General section is a dialog box called "Keys". This lets you attach key bindings to many events, including Build Project.
在“首选项”对话框中,“常规”部分下方是一个名为“键”的对话框。这使您可以将键绑定附加到许多事件,包括构建项目。
回答by Craig Angus
You can assign a keyboard binding to Build Projectdoing the following
您可以执行以下操作为Build Project分配键盘绑定
- Open up the Keys preferences, Window> Preferences >General>Keys
- Filter by type Build Project
- Highlight the binding field.
- 打开 Keys 首选项,Window> Preferences >General>Keys
- 按类型过滤构建项目
- 突出显示绑定字段。
You can then choose the binding you want
然后你可以选择你想要的绑定
i.e.
IE
Ctrl+ALt+B, P,
回答by Robin
I believe ctrl+b is already configured for this by default. Just need to have an edit window with focus.
我相信默认情况下已经为此配置了 ctrl+b 。只需要有一个带焦点的编辑窗口。