Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio/Intellij Idea: "Table of Contents" for a class

I have been messing around with Android Studio and so far I like most of what I have seen. One thing that has been annoying me though is this lack of "Table of Contents" for a class. I apologize for not knowing exactly what to call it. But what I am referring to is the dropdown menu in eclipse that lists all the methods, interfaces, classes and so on that are in that class file. This then allows you to jump to that position. This view is when you are in "Package Explorer" and click the arrow to the left of the class. This is one thing that makes me really miss eclipse. I know that you can easily search with Ctrl+F inside a document but I often forget the method names. I tried looking through here but to no avail. Just wondering if anyone knows some way to handle this.

like image 372
Ryan Smith Avatar asked Aug 19 '13 02:08

Ryan Smith


People also ask

How do I get all the methods of a class in IntelliJ?

By default, IntelliJ IDEA shows all classes, methods, and other elements of the current file. To toggle the elements you want to show, click the corresponding buttons on the Structure tool window toolbar. to show class fields.

How do I go to a specific class in IntelliJ?

You can automatically locate a class in the Project tool window. If the class is opened in the editor, press Alt+F1 to open the Select In popup. In the popup, select Project View and press Enter . IntelliJ IDEA locates your target in the Project tool window.

Is IntelliJ IDEA better than Android Studio?

IntelliJ vs. Android Studio. In fact, the they are very similar, Android Studio is based on the IntelliJ IDEA, which is a more general IDE tool and allows you to create code for a wider range of platforms. Android studio, as many of the name implies, is specialized just for the Android platform.

Is Android Studio based on IntelliJ IDEA?

Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA .


1 Answers

IDEA has a tab called "Structure", which shows all the methods, fields, etc. of the currently-open class.

IDEA window with Structure tab

like image 115
Chris Jester-Young Avatar answered Oct 03 '22 23:10

Chris Jester-Young