How to view method information in Android Studio

In Eclipse, when you hover your mouse over a method, a window would appear with a description of what the method does, what the parameters mean and what it returns. Is there a way to get Android Studio to do the same thing?

14 s
14

The easiest and the most straightforward way:

To activate: menu FileSettingsEditorGeneral

For Mac OS X, Android StudioPreferencesEditorGeneral and check Show quick documentation on mouse move:

Settings dialog with checked option


Other ways:

  • You can go into your IntelliJ IDEA’s bin folder and search for idea.properties. Add this line to the document:

    auto.show.quick.doc=true

Now you’ll have the same floating documentation window like in Eclipse.

  • You have to press Ctrl + Q to see the Javadoc.

You can pin the window and make the documentation appear every time you select a method with your mouse though.

Android Studio 1.0: You have to hold Ctrl if you want to get hold of the documentation window, for example, scrolling documentation. Otherwise, as you move your mouse away from the method, the documentation window will disappear.

Leave a Comment