How to view method information in Android Studio

Solution 1:

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.

Solution 2:

Yes, you can. Go to menu FileSettingsEditorShow quick documentation on mouse move

Or, in Mac OS X, go to Android Studio → PreferencesEditorGeneralShow quick doc on mouse move.

Solution 3:

It comes very handy if you create a keymap for functionalities you use very frequently. By default (if you select an OS X v10.5 (Leopard) and later keymap):

  1. Ctrl + P: To see what parameters are expected by the function
  2. Command + J: To see the documentation
  3. Ctrl + Space: To see the autocomplete suggestions

Enter image description here

Solution 4:

In addition to the answers here, you might want to make sure that the documentation is downloaded. To do that, go to SDK Manager:

Enter image description here

And then the SDK Tools tab and make sure Documentation for Android SDK is installed.

Enter image description here

If it isn't, check the box and click Apply.