How do I add a shortcut key to Eclipse 3.2 Java pl

2019-02-11 16:25发布

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?

3条回答
叛逆
2楼-- · 2019-02-11 17:03

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.

查看更多
ら.Afraid
3楼-- · 2019-02-11 17:04

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

查看更多
走好不送
4楼-- · 2019-02-11 17:05

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

  1. Open up the Keys preferences, Window> Preferences >General>Keys
  2. Filter by type Build Project
  3. Highlight the binding field.

You can then choose the binding you want

i.e.

Ctrl+ALt+B, P, 
查看更多
登录 后发表回答