Intellij IDEA 自动显示 javadoc

当我在 Netbeans 编码时,它会自动完成代码并显示 Javadocs。但是,当我使用 Intellij IDEA 时,如果我单击 ABC0 + Space,我可以看到自动完成,如果我单击 ABC0 + Q,我可以单独看到 javadoc。

当我看到自动完成或者像 Netbeans 一样在 Intellij IDEA 中单击 ABC0 + Space时,是否可以看到元素的 Javadoc?

47583 次浏览

Settings | Editor | General | Code Completion | Autopopup documentation in (ms).

Settings screenshot

更新 : 最新版本有一个 鼠标移动时显示 JavaDoc 的选项

文件-> 设置-> 编辑器-> 代码完成。

检查 (毫秒)中的 Autopopup 文档并选择延迟。

在 IntelliJ IDEA 14中展示 Javadoc:

  • 编写代码时:

    File -> Settings -> Editor -> General -> Code Completion -> Autopopup documentation in (ms)

它只有当你按 CTRL + SPACE时才能使用。如果你选择弹出的图标,它会更有用。文档窗口将被添加到右侧的选项卡中。稍后,我建议调整窗口的大小并取消选中 Pinned属性。

  • 鼠标悬停:

    File -> Settings -> Editor -> General -> Show quick documentation on mouse move