Eclipse: go to inheritance / database declaration

In Visual Studio + Resharper, I could click Alt+Hometo switch from a method to the corresponding base class or interface declaration, and Alt+Endgo from the base declaration to the implementation in the derived class. I could quickly navigate the source code, even when everything was using interfaces, not specific classes.

Is this doable in Eclipse? I tried a type hierarchy, but it's too slow to be useful to me.

+3
source share
2 answers

When choosing a method that implements an interface or overrides another method, the triangle is shown on the left border of the java editor. Clicking on this triangle will take you to an overridden method or interface declaration.

The transition from one base class to one of the derived classes is done by pressing Ctrl+ t. But this only gives you a type hierarchy that is very slow if there are many derived classes.

+4
source

Take a look at nWire for Java (I assume you code in Java, it also works for PHP). nWire works with you during your code and instantly displays all possible code associations, including interface implementations. It can do a lot more.

0
source

Source: https://habr.com/ru/post/1766050/


All Articles