开发者

Add Watch Expression in Eclipse using keyboard shortcut

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 mo开发者_JAVA技巧use cuts down on efficiency.

Can anyone offer me any suggestions to fix this?


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.


same way you can use for windows. it works.

Eclipse > Preferences > General > Keys


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 ...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜