问题
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