How to assign a hotkey to a menu item in Eclipse?
I have Eclipse for PHP Developers
based on 开发者_JS百科Helios
.
In order to run my PHPUnit tests on a directory its:
- right click
- click
- click
- click
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.
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!
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.
精彩评论