如何在Android Studio中查看方法信息

2024-01-10

在 Eclipse 中,当您将鼠标悬停在某个方法上时,会出现一个窗口,其中描述了该方法的用途、参数的含义以及返回的内容。有没有办法让 Android Studio 做同样的事情?


最简单、最直接的方法:

激活:菜单FileSettingsEditorGeneral

对于 Mac OS X,安卓工作室优先EditorGeneral并检查显示有关鼠标移动的快速文档:


其他方法:

  • 你可以进入你的IntelliJ IDEA 的 https://en.wikipedia.org/wiki/IntelliJ_IDEA bin文件夹并搜索创意.属性。将此行添加到文档中:

    auto.show.quick.doc=true

现在您将拥有与中相同的浮动文档窗口Eclipse https://en.wikipedia.org/wiki/Eclipse_%28software%29.

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

不过,您可以固定窗口,并在每次使用鼠标选择方法时显示文档。

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.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何在Android Studio中查看方法信息 的相关文章

随机推荐