How can I 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?


The easiest and the most straightforward way:

You can activate it by going to: File > Settings > Editor > General and check Show quick documentation on mouse move :

带有选项的设置对话框

Other ways:

  • You can go into your IntelliJ'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 docs 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 documentation window for eg scrolling documentation otherwise as you move your mouse away from method documentation window will disappear.


    Yes you can. Go to File -> Settings -> Editor -> Show quick doc on mouse move


    Android Studio 1.2.2 has moved the setting into the General subfolder of Editor settings.


    在这里输入图像描述

    链接地址: http://www.djcxy.com/p/67690.html

    上一篇: 如何保护/加密Lucene索引?

    下一篇: 我如何查看Android Studio中的方法信息?