views:

168

answers:

2

I need help adding a keyboard shortcut for adding a watch expression in Eclipse. I can add a watch by right-clicking in the "Expressions View", but having go back and forth between the keyboard and mouse cuts down on efficiency.

Can anyone offer me any suggestions to fix this?

+1  A: 

Go to Preferences (on Mac its Eclipse > PReferences.. not sure what heading prefs is under on win/*nix) and expand the "General" section and select "Keys" you will then get a pane with a search dialog. Type in "watch" and set it up appropriately.

prodigitalson
I was unable to get the "Watch" command to do anything when activated via hot key. Is there a trick to this?
Jonathan Dumaine
@Jonathan: The one you used might not actually be the one youre looking for... so sometimes it takes some trial error... I know i did thes when i was trying to set a hot key for external commands.
prodigitalson
Multiple Watch commands? The description for the hotkey says "Add Watch Expression." Thinking it's just plain ol' 'broked'.
Jonathan Dumaine
A: 

same way you can use for windows. it works.

Eclipse > Preferences > General > Keys

GK