How to see Javadoc documentation on mouse hover in NetBeans?

别等时光非礼了梦想. 提交于 2019-11-28 17:22:00

问题


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

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

Maybe there is some hot key for that...


回答1:


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

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




回答2:


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.




回答3:


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.




回答4:


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

Window >> Other >> javadoc.

Now you can see both your code and respective javadoc.

Update for Netbeans 8:

Window >> IDE Tools >> Javadoc Documentation



来源:https://stackoverflow.com/questions/6517266/how-to-see-javadoc-documentation-on-mouse-hover-in-netbeans

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