Edward Tanguay
Edward Tanguay

Reputation: 193312

How to assign a hotkey to a menu item in Eclipse?

I have Eclipse for PHP Developers based on Helios.

In order to run my PHPUnit tests on a directory its:

alt text

How can I assign keyboard hotkey (e.g. ALT-Apple-P) to "Run PHPUnit Test" based on a certain directory so I can execute my tests without all the clicking.

Upvotes: 3

Views: 1012

Answers (2)

ZZiloS
ZZiloS

Reputation: 13

Menu Window -> Preferences: General -> Keys: Search in the list the action you intend to bind a shortcut to, below on the Binding set the shortcut, and you're done.

Upvotes: 0

Tim
Tim

Reputation: 2831

Open the eclipse preferences. Ther you go to General -> Keys. In that window you must search for your Run PHPUnit Test command an binding your key combination!

Upvotes: 5

Related Questions