本文翻译自: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. 在Eclipse中,当您将鼠标悬停在某个方法上时,会出现一个窗口,其中包含该方法的作用,参数的含义以及返回的内容。 Is there a way to get Android Studio to do the same thing? 有没有办法让Android Studio做同样的事情?


#1楼

参考:https://stackoom.com/question/17jX9/如何在Android-Studio中查看方法信息


#2楼

The easiest and the most straightforward way: 最简单,最直接的方式:

To activate: File > Settings > Editor > General 要激活: 文件>设置>编辑器>常规

For Mac OS X , Android Studio > Preferences > Editor > General and check Show quick documentation on mouse move : 对于Mac OS XAndroid Studio>首选项>编辑器>常规并选中显示鼠标移动的快速文档

Other ways: 其他方法:

  • You can go into your IntelliJ's bin folder and search for idea.properties . 您可以进入IntelliJ的bin文件夹并搜索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. 现在,您将拥有与Eclipse中相同的浮动文档窗口。

  • You have to press CTRL + Q to see the Javadoc. 你必须按CTRL + Q才能看到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. Android Studio 1.0:如果要获取文档窗口(例如滚动文档),则必须按住CTRL ,否则当您将鼠标从方法文档窗口移开时将消失。


#3楼

Yes, you can. 是的你可以。 Go to File -> Settings -> Editor -> Show quick documentation on mouse move 转到File -> Settings -> Editor -> Show quick documentation on mouse move

Or, in Mac OS X , go to Android Studio - > Preferences -> Editor - > General > Show quick documentation on mouse move . 或者,在Mac OS X中 ,转到Android Studio - > Preferences -> Editor - > General > Show quick documentation on mouse move


#4楼

Android Studio 2.xx Android Studio 2.xx
Moved under Editor -> General 在编辑器 - >常规下移动

Older Versions 旧版本
Using windows 7 and Android Studio 1.0.x it took me a while to figure out the steps provided in the answer. 使用Windows 7和Android Studio 1.0.x我花了一些时间来弄清楚答案中提供的步骤。
To help further visitors save some time, here is the way I did it: 为了帮助更多的访问者节省一些时间,这是我的方式:
Go to File -> Settings or press CTRL + ALT + S . 转到文件 - >设置或按CTRL + ALT + S.
The following window will open and check Show quick doc on mouse move under IDE Settings -> Editor . 将打开以下窗口,并在“ IDE设置” - >“编辑器”下选中Show quick doc on mouse move

Or just press CTRL and hover your move over your method, class ... 或者只需按CTRL并将您的移动悬停在您的方法上,班级......


#5楼

If you just need a shortcut, then it is Ctrl + Q on Linux (and Windows). 如果您只需要一个快捷方式,那么它在Linux(和Windows)上是Ctrl + Q. Just hover the mouse on the method and press Ctrl + Q to see the doc. 只需将鼠标悬停在方法上,然后按Ctrl + Q即可查看文档。


#6楼

Android Studio 1.2.2 has moved the setting into the General subfolder of Editor settings. Android Studio 1.2.2已将设置移至编辑器设置的General子文件夹中。


如何在Android Studio中查看方法信息?相关推荐

  1. android studio点击图片,如何在Android Studio中的模拟器图库中添加图像?

    如何在Android Studio中的模拟器图库中添加图像? 我正在开发图像过滤器应用程序. 但是,如果我没有任何图像,就无法真正尝试. 我知道我可以在电话中对其进行测试,但这并不相同,因为我需要错误 ...

  2. android getter不起作用,java - 如何在Android Studio中自动生成getter和setter

    java - 如何在Android Studio中自动生成getter和setter Android Studio中是否有一个快捷方式可以自动生成给定类中的getter和setter? 14个解决方案 ...

  3. 在java中添加源_关于Java:如何在Android Studio中添加链接的源文件夹?

    在Eclipse中,我可以将源文件夹作为"链接的源文件夹"添加到我的android项目中. 如何在Android Studio中实现同一目的? 或者是否可以添加外部文件夹以构建gr ...

  4. android编辑配置文件,如何在android studio中修改配置文件

    在使用android studio过程中,你知道怎么手动修改配置文件吗?下面是学习啦小编给大家整理的一些有关在android studio中修改配置文件的方法,希望对大家有帮助! 在android s ...

  5. android 最新sdk版本,详解如何在Android studio中更新sdk版本和build-tools版本

    一.首先看下Android开发用到的sdk目录: build-tools 保存着一些Android平台相关通用工具,比如adb.和aapt.aidl.dx等文件. aapt即Android Asset ...

  6. 【错误记录】Android Studio 中查看 Gradle 配置的方法源码 ( 配置 gradle-wrapper.properties 中版本为 gradle-x.x.x-all.zip )

    文章目录 一.报错信息 二.解决方案 Android Plugin DSL Reference 参考文档 : https://google.github.io/android-gradle-dsl/2 ...

  7. linux gradle仓库位置,如何在Android Studio中使用Gradle发布项目至Jcenter仓库

    简述 目前非常流行将开源库上传至Jcenter仓库中,使用起来非常方便且易于维护,特别是在Android Studio环境中,只需几步配置就可以轻松实现上传和发布. Library的转换和引用 博主的 ...

  8. 如何在Android Studio中删除模块

    本文翻译自:How to delete a module in Android Studio Is there a way to delete a module within Android Stud ...

  9. android studio创建md,如何在Android Studio中设置*md文件打开方式

    最近在Android Studio中写一些Demo的时候,会顺便在里面创建一个.md文件用来进行Demo笔记的书写.然而Android Studio不带有markdown预览功能,所以我就琢磨如何在A ...

最新文章

  1. pytorch中调整学习率的lr_scheduler机制
  2. 函数式编程语言python-函数式编程初探
  3. python画圆简单代码-Python画直线 画圆 画矩形代码
  4. mysql连接失败 ping通_哭~问:oracle 数据库有时会突然连接失败,但能ping通主机...
  5. ITK:从三个标量图像组成矢量
  6. python归一化处理_详解python实现数据归一化处理的方式:(0,1)标准化
  7. 利用CGLib实现动态代理实现Spring的AOP
  8. python中fetchall_Python连接MySQL并使用fetchall()方法过滤特殊字符
  9. MAC OS 烧录ISO文件到U盘
  10. 产品工作中/阅读中的涓滴意念
  11. java-信息安全(九)-基于DH,非对称加密,对称加密等理解HTTPS
  12. Coding List
  13. Eclipse下搭建Android的NDK开发环境
  14. 使用其它模块的头文件
  15. 《当幸福来敲门》观后感
  16. 新年礼物送什么好?平价实用的蓝牙耳机推荐
  17. 欧莱雅迎来入华25周年;万代南梦宫集团将启用新logo | 美通企业日报
  18. 面试之算法知识点总结
  19. A Mutex must not be copied after first use. 是什么(nocopy)
  20. UEFI标准应用程序模块--SMBIOS的读写

热门文章

  1. java用eclipse怎么把main快点打出来
  2. epoll_data_t里面的void *ptr; int fd; u32; u64 分析
  3. 算法----单链表反转
  4. Android Camera 预览拉伸
  5. 我教你怎么玩转git
  6. Android stadio litepal
  7. 测试hadoop安装是否成功
  8. asp.net 窗体关闭事件_VBA代码将强制执行:你的窗体上必须显示最大、最小化按钮...
  9. JavaScript语言基础12
  10. Redis支持的5种数据类型