可以在NetBeans(Python插件)中查看方法/函数文档? [英] Possible to view method/function docs in NetBeans (Python plugin)?

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

问题描述

我刚刚开始尝试使用Python支持的NetBeans 6.5。我喜欢IDE在自动完成时在弹出窗口中为函数/方法提供了docstring文档,但是还有其他方法可以通过鼠标悬停在函数/方法名称上或点击某处查看docstrings吗?我似乎找不到一个办法来做到这一点。我最好的做法是右键单击菜单中的转到源。如果你知道这个窍门(或者可以指出我所缺少的明显的东西),我真的很感激知道它!

解决方案

p>我从Sun的Tor Norbye收到以下答案:


按住ctrl键(或Mac上的Cmd),然后悬停。 / p>

此外,Ctrl-Shift-Space(例如代码完成+ shift)将显示--just-完成文档(这意味着它不仅仅是查看插入符号,但整个标识符和左手边的类型,如果它可以解决它,计算一个特定的匹配而不是许多)。



I just started trying out NetBeans 6.5 with Python support. I like that the IDE provides the docstring documentation for a function/method in a popup when it's auto-completing, but is there any other way to view docstrings, either by mousing over a function/method name, or clicking somewhere? I just can not seem to find a way to do this. The best I can seem to do is "Go to source" in the right-click menu. If you know the trick (or can point out the obvious thing I'm missing), I'd really appreciate knowing it!

解决方案

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

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

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