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?
支持Python的NetBeans 6.5在自动完成时为弹出窗口中的函数/方法提供docstring文档,但还有另一种查看文档字符串的方法吗?
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 个解决方案
#1
I received the following answer from Tor Norbye at Sun:
我从Sun的Tor Norbye那里得到了以下答案:
Hold the ctrl key (or Cmd on Mac) and then hover.
按住ctrl键(或Mac上的Cmd),然后将鼠标悬停。
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).
此外,Ctrl-Shift-Space(例如代码完成+移位)将显示-just-完成文档(这意味着它不仅仅查看插入符的前缀,而是整个标识符和左侧类型,如果它可以解决它,计算一个特定的匹配而不是很多)。
#2
You can also use this keyboard shortcut on Mac. Shift + Meta + Backslash
您也可以在Mac上使用此键盘快捷键。 Shift + Meta +反斜杠
#3
You may be referring to the function Show Documentation Popup
in Netbeans
您可能指的是Netbeans中的Show Documentation Popup功能
Try
Ctrl+Shift+SPACE or
Ctrl+Shift+BACK_SLASH
related: How to see Javadoc documentation on mouse hover in NetBeans?
相关:如何在NetBeans中查看有关鼠标悬停的Javadoc文档?
#1
I received the following answer from Tor Norbye at Sun:
我从Sun的Tor Norbye那里得到了以下答案:
Hold the ctrl key (or Cmd on Mac) and then hover.
按住ctrl键(或Mac上的Cmd),然后将鼠标悬停。
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).
此外,Ctrl-Shift-Space(例如代码完成+移位)将显示-just-完成文档(这意味着它不仅仅查看插入符的前缀,而是整个标识符和左侧类型,如果它可以解决它,计算一个特定的匹配而不是很多)。
#2
You can also use this keyboard shortcut on Mac. Shift + Meta + Backslash
您也可以在Mac上使用此键盘快捷键。 Shift + Meta +反斜杠
#3
You may be referring to the function Show Documentation Popup
in Netbeans
您可能指的是Netbeans中的Show Documentation Popup功能
Try
Ctrl+Shift+SPACE or
Ctrl+Shift+BACK_SLASH
related: How to see Javadoc documentation on mouse hover in NetBeans?
相关:如何在NetBeans中查看有关鼠标悬停的Javadoc文档?