Intellij IDEA show javadoc automatically

淺唱寂寞╮ 提交于 2019-11-28 15:14:21

问题


When I am coding at Netbeans it autocompletes the code and show Javadocs. However when I am using Intellij IDEA if I click Ctrl+Space I can see the auto-complete and if I click Ctrl+Q I can see the javadoc seperately.

Is it possible to see the Javadoc of element whenever I see auto-complete or click Ctrl+Space at Intellij IDEA as like Netbeans?


回答1:


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

UPDATE: latest versions have an option to show JavaDoc on mouse move.




回答2:


File -> Settings -> Editor -> Code completion.

Check Autopopup documentation in (ms) and choose delay.




回答3:


Show Javadoc in IntelliJ IDEA 14:

  • When you write code:

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

It's only available when you press CTRL+SPACE It's more usable if you select the pin icon when it popups. The documentation window will be added to the tabs on the right. Later on I recommend to resize the window and to uncheck the Pinned property.

  • On mouse hover:

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



来源:https://stackoverflow.com/questions/7934876/intellij-idea-show-javadoc-automatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!