如何在 NetBeans 中查看有关鼠标悬停的 Javadoc 文档?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6517266/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-16 06:33:42  来源:igfitidea点击:

How to see Javadoc documentation on mouse hover in NetBeans?

javanetbeansjavadoc

提问by VextoR

Is it possible, when you mouse hover on method/class so you can see Javadoc in NetBeans 7?

当您将鼠标悬停在方法/类上时,是否有可能在 NetBeans 7 中看到 Javadoc?

I want similar to Eclipse, when you just mouse hover on Stringand you can read Java API documentation about it.

我想要类似于 Eclipse,当您将鼠标悬停在上面时String,您可以阅读有关它的 Java API 文档。

Maybe there is some hot key for that...

也许有一些热键...

采纳答案by Rakesh

You can view the javadoc in Netbeans by clicking on the method and press Ctrl+ Shift+ Space
(Command+ Shift+ Spaceon Mac) You can also see the various shortkeys in the help menu>keyboard shortcuts card.

您可以通过单击方法并按Ctrl+ Shift+ Space
(在 Mac 上为Command+ Shift+ Space)查看 Netbeans 中的 javadoc。您还可以在帮助菜单>键盘快捷键卡中看到各种快捷键。

UPDATE:

更新:

You can instead open a "javadoc" window from the menu Window>IDE Tools>Javadoc Documentation. This will show the javadoc in a window near the output window for that method when you click on the method or object

您可以改为从菜单Window>IDE Tools>Javadoc Documentation打开“javadoc”窗口。当您单击方法或对象时,这将在该方法的输出窗口附近的窗口中显示 javadoc

回答by Aurelien Ribon

Javadoc won't show up with just a mouse hover, but you can click on a word (method/class/field/variable/whatever name) and press ctrl+space. Javadoc should show up.

Javadoc 不会仅在鼠标悬停时出现,但您可以单击一个词(方法/类/字段/变量/任何名称)并按ctrl+ space。Javadoc 应该会出现。

回答by Raju Penumatsa

You can even open Javadoc window and you can see the javadoc in that. I prefer this way

您甚至可以打开 Javadoc 窗口,您可以在其中看到 javadoc。我更喜欢这种方式

Window>> Other>> javadoc.

Window>> Other>> javadoc

Now you can see both your code and respective javadoc.

现在您可以看到您的代码和相应的 javadoc。

Update for Netbeans 8:

Netbeans 8 更新:

Window>> IDE Tools>> Javadoc Documentation

Window>> IDE Tools>>Javadoc Documentation

回答by Anwuna

I know that in netbeans 8.0 you can hold down the ctrl button and hover over the class or method, etc. and the javadoc window would appear.

我知道在 netbeans 8.0 中,您可以按住 ctrl 按钮并将鼠标悬停在类或方法等上,然后会出现 javadoc 窗口。