可以在NetBeans中查看方法/函数文档吗? [英] Possible to view method / function docs in NetBeans?

查看:346
本文介绍了可以在NetBeans中查看方法/函数文档吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

具有Python支持的NetBeans 6.5在自动完成时为弹出窗口中的函数/方法提供了文档字符串文档,但是还有另一种查看文档字符串的方法吗?

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.

推荐答案

我在Sun收到了Tor Norbye的以下答复:

I received the following answer from Tor Norbye at Sun:

按住ctrl键(或在Mac上为Cmd),然后将鼠标悬停.

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

此外,Ctrl-Shift-空格键(例如代码完成+移位)将显示-just-完成文档(这意味着它不仅查看插入符号的前缀,还包括整个标识符和左侧类型)如果可以解决,则计算一个特定的匹配而不是多个).

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

这篇关于可以在NetBeans中查看方法/函数文档吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆