Reputation: 91
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?
Upvotes: 9
Views: 5619
Reputation: 2844
I managed to get it to work if i first:
Window -> Preferences -> General -> Keys (type filter text: watch).
Set the Binding to a free Shortcut of your choice (i've choosen Shift+W).
Select 'Debugging' in the below 'When:' dropbox. It now works as soon as my debugger is running (but it wont work if youre currently not debugging.
Hope that helps to work with that crippled "something like an IDE" eclipse thing i currently have to "work" with as well ...
Upvotes: 0
Reputation: 26428
same way you can use for windows. it works.
Eclipse > Preferences > General > Keys
Upvotes: 0
Reputation: 60413
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.
Upvotes: 3