Navigating code
The most direct way of navigating to declarations or type declarations is pressing Ctrl (Cmd on OS X) and clicking on the method name when it is displayed as a link. This option is also accessible from the Navigate | Declaration menu or pressing Ctrl + B (Cmd + B on OS X).
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:
![](https://static.packt-cdn.com/products/9781786467959/graphics/B05459_04_12.jpg)
On the left edge of the editor, you can find another type of navigation...