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

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

问题描述

在 Eclipse 中,将鼠标悬停在方法、变量等上时,会显示带有相应 JavaDocs 的工具提示.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,它已移至 Editor >一般>代码完成.

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 毫秒

  • 选中此复选框可显示插入符号处符号的快速文档.快速文档弹出窗口在指定延迟后出现.
    1. 在编辑器中 >一般>代码完成(子项)>1000 毫秒内的自动弹出文档,用于显式调用的完成

    • 选中此复选框可使 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.
      • EDIT:对于 IntelliJ Ultimate 2020.3,第一个选项现在位于 Editor > 下.代码编辑快速文档 >显示有关鼠标移动的快速文档

        EDIT: For IntelliJ Ultimate 2020.3, the first option is now located under Editor > Code Editing > Quick Documentation > Show quick documentation on mouse move

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

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