IntelliJ在鼠标悬停时显示JavaDocs工具提示 [英] IntelliJ show JavaDocs tooltip on mouse over

查看:331
本文介绍了IntelliJ在鼠标悬停时显示JavaDocs工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,当将鼠标悬停在方法,变量等上时,会显示工具提示以及相应的JavaDoc。 IntelliJ中是否有这样的功能?

In Eclipse, when hovering over a method, variable, etc. a tooltip is displayed with the corresponding JavaDocs. Is there such a feature in IntelliJ?

推荐答案

对于 IntelliJ 13 ,编辑器中有一个复选框IDE设置中的页面

For IntelliJ 13, there is a checkbox in Editor's page in IDE Settings

编辑:对于 IntelliJ 14 ,该选项已移至编辑器>常规页面。这是其他组中的最后一个选项。 (对于Mac,选项位于菜单IntelliJ Idea>首选项)。

For IntelliJ 14, the option has been moved to Editor > General page. It's the last option in the "Other" group. (For Mac the option is under the menu "IntelliJ Idea" > "Preferences").

编辑:对于 IntelliJ 16 ,它是编辑器>常规>其他中倒数第二个选项。

For IntelliJ 16, it's the second-to-last option in Editor > General > Other.

编辑:对于 IntelliJ Ultimate 2016.1 ,它已移至编辑>常规>代码完成。

For IntelliJ Ultimate 2016.1, it's been moved to Editor > General > Code Completion.

编辑对于 IntelliJ Ultimate 2017.2,又名IntelliJ IDEA 2017.2.3 ,实际上有两种选择:

For IntelliJ Ultimate 2017.2, aka IntelliJ IDEA 2017.2.3, there are actually two options:


  1. 在编辑器>常规>其他(部分)> 显示关于鼠标移动的快速文档 - 延迟500毫秒


    • 选中此复选框可显示插入符号的快速文档。在指定的延迟后出现快速文档弹出窗口。


  • 选中此复选框可让IntelliJ IDEA自动显示弹出窗口查找列表中当前突出显示的类,方法或字段的文档。如果未选中此复选框,请使用 Ctrl + Q 显示插入符号元素的快速文档。

  • 快速文档窗口在明确调用代码完成时,将仅在这些情况下自动弹出指定的延迟。对于自动代码完成列表,文档窗口仅在按 Ctrl + Q 时显示。

  • Select this check box to have IntelliJ IDEA automatically show a pop-up window with the documentation for the class, method, or field currently highlighted in the lookup list. If this check box is not selected, use Ctrl+Q to show quick documentation for the element at caret.
  • Quick documentation window will automatically pop up with the specified delay in those cases only, when code completion has been invoked explicitly. For the automatic code completion list, documentation window will only show up on pressing Ctrl+Q.

这篇关于IntelliJ在鼠标悬停时显示JavaDocs工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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