在Android Studio中查看方法信息 [英] View method information in Android Studio

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

问题描述

在Eclipse中,当您将鼠标悬停在方法上时,会出现一个窗口,其中包含该方法的作用,参数的含义和返回值的描述。有没有办法让Android Studio做同样的事情?

解决方案

最简单和最简单的方法:



您可以通过转到:文件>设置>编辑器>常规激活它,然后检查显示鼠标移动的快速文档



的设置对话框



其他方式:




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



    auto.show.quick.doc = true



    现在,您将具有与Eclipse相同的浮动文档窗口。


  • 您必须按 CTRL + Q 查看Javadoc。



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






Android Studio 1.0:如果您想要保留文档窗口,您必须持有 CTRL 滚动文档否则您将鼠标移离方法文档窗口将消失。


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 e.g. scrolling documentation otherwise as you move your mouse away from method documentation window will disappear.

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

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