Possible to view method / function docs in NetBeans?

六月ゝ 毕业季﹏ 提交于 2019-12-12 09:08:19

问题


NetBeans 6.5 with Python support provides the docstring documentation for a function/method in a popup when auto-completing, but is there another way to view docstrings?

Perhaps achieved by mousing over a function/method name, or clicking somewhere?

The best I can seem to do is "Go to source" in the right-click menu.


回答1:


I received the following answer from Tor Norbye at Sun:

Hold the ctrl key (or Cmd on Mac) and then hover.

Also, Ctrl-Shift-Space (e.g. code completion + shift) will display -just- the completion doc (which means it doesn't just look at the prefix of the caret, but the whole identifier and left hand side type if it can resolve it, to compute one specific match rather than many).




回答2:


You can also use this keyboard shortcut on Mac. Shift + Meta + Backslash




回答3:


You may be referring to the function Show Documentation Popup in Netbeans

Try

Ctrl+Shift+SPACE or

Ctrl+Shift+BACK_SLASH

related: How to see Javadoc documentation on mouse hover in NetBeans?



来源:https://stackoverflow.com/questions/463806/possible-to-view-method-function-docs-in-netbeans

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