简体   繁体   English

Eclipse 3.2 Java插件如何添加快捷键构建当前项目?

[英]How do I add a shortcut key to Eclipse 3.2 Java plug-in to build the current project?

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.关于 Eclipse Java 插件的少数令人讨厌的事情之一是缺少用于构建与当前资源相关联的项目的键盘快捷键。 Anyone know how to go about it?有谁知道该怎么做?

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.这使您可以将键绑定附加到许多事件,包括构建项目。

You can assign a keyboard binding to Build Project doing the following您可以执行以下操作为Build Project分配键盘绑定

  1. Open up the Keys preferences, Window> Preferences >General>Keys打开 Keys 首选项,Window> Preferences >General>Keys
  2. Filter by type Build Project按类型过滤构建项目
  3. Highlight the binding field.突出显示绑定字段。

You can then choose the binding you want然后你可以选择你想要的绑定

ie Ctrl + ALt + B , P ,Ctrl + ALT + B , P ,

I believe Ctrl + B is already configured for this by default.我相信默认情况下已经为此配置了Ctrl + B Just need to have an edit window with focus.只需要有一个带焦点的编辑窗口。

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

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