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

时间:2023-02-05 17:52:10

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插件的一些令人烦恼的事情之一就是缺少用于构建与当前资源关联的项目的键盘快捷方式。有谁知道如何去做?

3 个解决方案

#1


25  

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.

在“首选项”对话框中,“常规”部分下面是一个名为“键”的对话框。这允许您将键绑定附加到许多事件,包括Build Project。

#2


7  

You can assign a keyboard binding to Build Project doing the following

您可以为Build Project分配键盘绑定,执行以下操作

  1. Open up the Keys preferences, Window> Preferences >General>Keys
  2. 打开Keys首选项,Window> Preferences> General> Keys

  3. Filter by type Build Project
  4. 按类型Build Project过滤

  5. Highlight the binding field.
  6. 突出显示绑定字段。

You can then choose the binding you want

然后,您可以选择所需的绑定

i.e.

Ctrl+ALt+B, P, 

#3


1  

I believe ctrl+b is already configured for this by default. Just need to have an edit window with focus.

我相信默认情况下已经为此配置了ctrl + b。只需要有一个焦点的编辑窗口。

#1


25  

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.

在“首选项”对话框中,“常规”部分下面是一个名为“键”的对话框。这允许您将键绑定附加到许多事件,包括Build Project。

#2


7  

You can assign a keyboard binding to Build Project doing the following

您可以为Build Project分配键盘绑定,执行以下操作

  1. Open up the Keys preferences, Window> Preferences >General>Keys
  2. 打开Keys首选项,Window> Preferences> General> Keys

  3. Filter by type Build Project
  4. 按类型Build Project过滤

  5. Highlight the binding field.
  6. 突出显示绑定字段。

You can then choose the binding you want

然后,您可以选择所需的绑定

i.e.

Ctrl+ALt+B, P, 

#3


1  

I believe ctrl+b is already configured for this by default. Just need to have an edit window with focus.

我相信默认情况下已经为此配置了ctrl + b。只需要有一个焦点的编辑窗口。