The most direct way of navigating to declarations or type declarations is by pressing Ctrl and clicking on the method name when it is displayed as a link. This option is also accessible from the Declaration menu in Navigate.
We can navigate through the hierarchy of methods from the left edge of the editor. Next to the method declarations that belong to a hierarchy of methods, there is an icon that indicates whether a method is implementing an interface method, implementing an abstract class method, overriding a superclass method, or getting implemented or overridden by other descendants. Click on these icons to navigate to the methods in the hierarchy. This option is also available via Navigate | Super Method or Navigate | Implementation(s). You can test it in the main activity of our first project (MainActivity.java
), as shown in the following screenshot:
Another useful utility related to code navigation is the use of custom regions. A custom region is a piece of code that...