在Eclipse中,当鼠标悬停在一个方法、变量等上时,会显示一个带有相应JavaDocs的工具提示。IntelliJ中有这样的特性吗?


当前回答

在12.1中可以实现。

找到的想法。安装IDE的BIN文件夹中的属性,例如C:\Program Files (x86)\JetBrains\IntelliJ\bin

在文件末尾添加新行:

auto.show.quick.doc=true

启动IDEA,将鼠标悬停在某物上:

其他回答

对于Intellij 15,使用文件>设置>编辑器>常规选项显示鼠标移动时的快速文档。

你也可以通过在搜索框中输入“quick”或类似的东西来到达那里:

在mac IntelliJ终极(试用)14我有我的设置>编辑器>一般>代码完成。我笔记本电脑上的工具提示是F1。

它被称为“自动opup文档(毫秒):”

从IntelliJ Ultimate 2018.1.5,也就是IntelliJ IDEA 2018.1.5,到2019.3,在File -> Preferences下实际上有两个选项:

In Editor > General > Other (section) > Show quick documentation on mouse move - delay 500 ms Select this check box to show quick documentation for the symbol at caret. The quick documentation pop-up window appears after the specified delay. In Editor > General > Code Completion (sub-item) > Auto-display documentation in 1000 ms 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.

在2020.1编辑器中添加了javadocs渲染。屏幕截图借用了intellij文档。

至少对我来说,最简单的方法是:

Ctrl + Shift +一个 类型:show document 显示鼠标移动时的快速文档(设置为on)