如何在Android Studio中查看方法信息? [英] How to view method information in Android Studio?

查看:149
本文介绍了如何在Android Studio中查看方法信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,将鼠标悬停在某个方法上时,将出现一个窗口,其中描述了该方法的作用,参数的含义以及返回的内容.有没有办法让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:

要激活:文件>设置>编辑器>常规

对于Mac OS X Android Studio>偏好设置">编辑器">常规" ,然后选中在鼠标移动时显示快速文档:

其他方式:

  • 您可以进入IntelliJ的bin文件夹并搜索 idea.properties .将此行添加到文档中:

  • 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

现在,您将拥有与Eclipse中相同的浮动文档窗口.

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

您必须按 CTRL + Q 才能查看Javadoc.

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::如果要保留文档窗口,例如,必须按住 CTRL .滚动文档,否则当您将鼠标移离方法文档窗口时,该文档将消失.

Android Studio 1.0: You have to hold CTRL if you want to get hold of documentation window for e.g. scrolling documentation otherwise as you move your mouse away from method documentation window will disappear.

这篇关于如何在Android Studio中查看方法信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆