android-studioandroid-view

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?


Solution

  • 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:

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

    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.