Thursday, August 19, 2010

Hot eclipse tip of the day

In eclipse, when you hit F3 while your cursor is over some code in .java file, it will jump to its declaration. It's all good except in the case of an interface. For a method in interface, most of time you want to see its implementation not its declaration. There are few ways to work around this:

- Ctrl+mouse over the text will show options to jump to declaration or implementation.

- Ctrl+t will also show you options for both interface and its implementation.

First one requires me to use mouse, second one is not intuitive because I am used to hitting F3 to do similar operation. Ideally, you would like to see some combination of F3 doing its job. The Implementors plugin does exactly that. Now when I hit, ALT+F3 it goes directly to its implementation.

No comments: