Possible to view method / function docs in NetBean

2020-07-26 05:13发布

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.

3条回答
迷人小祖宗
2楼-- · 2020-07-26 05:24

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

查看更多
再贱就再见
3楼-- · 2020-07-26 05:34

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).

查看更多
我命由我不由天
4楼-- · 2020-07-26 05:39

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?

查看更多
登录 后发表回答