如何在IntelliJ IDEA中查看JavaDoc? [英] How to see JavaDoc in IntelliJ IDEA?
问题描述
我刚刚从Eclipse切换到IntelliJ并缺少Eclipse的一个功能 - 当你将鼠标放在方法上时它会显示一个javadoc信息。我发现(可能是我错了)显示的方式是快捷方式命令 + J 。当我点击它时出错了,请在下面的屏幕截图中看到。请告知我如何快速获取javadoc信息。我至少需要知道方法返回的类型。
使用查看
| 快速文档或相应的键盘快捷键(默认情况下:Windows / Linux上的 Ctrl + Q 和 Ctrl + < Mac上的kbd> J 。有关详细信息,请参阅
另一种查看快速文档的方法是鼠标移动:
I just switched from Eclipse to IntelliJ and lack one feature from Eclipse - when you put your mouse over a method it shows a javadoc info. I found out (may be I'm wrong) the way to show is a shortcut command+J. When I click it I get something wrong, please see on the screen shot below. Please advice how can I quickly get javadoc information. I need at least know what type a method returns.
Use View
| Quick Documentation or the corresponding keyboard shortcut (by default: Ctrl+Q on Windows/Linux and Ctrl+J on Mac). See the documentation for more information.
It's also possible to enable automatic JavaDoc popup on explicit (invoked by a shortcut) code completion in Settings
| Editor
| General
| Code completion
(Autopopup documentation):
Yet another way to see the quick doc is on mouse move:
这篇关于如何在IntelliJ IDEA中查看JavaDoc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!