如何获取PyCharm以在Python/IPython控制台和编辑器中显示方法签名和文档? [英] How do I get PyCharm to show method signatures and documentation in the Python/IPython console and the editor?

查看:195
本文介绍了如何获取PyCharm以在Python/IPython控制台和编辑器中显示方法签名和文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IPython的QT控制台(在Windows 7上)中,如果输入:

In IPython's QT console (on Windows 7), if I type:

import scipy
scipy.zeros(

后跟Tab,它显示了该方法的基本文档,例如其签名,参数,描述等.在PyCharm CE 3.4.1中,我启用了IPython作为控制台,但这没有发生.在实际的编辑器中也是如此.如果在编辑器中键入此代码,则不会显示任何内容.我不认为这与中的问题有关(PyCharm无法识别某事物的类型,因为它实际上没有运行它),但也许是.

followed by Tab, it displays basic documentation for the method, like its signature, parameters, description, etc. In PyCharm CE 3.4.1, I have IPython enabled as my console, but this doesn't happen. The same is true in the actual editor; if I type this code in the editor, nothing shows up. I don't think this is related to the issue in this question (where PyCharm can't tell the type of something because it's not actually running it) but maybe it is.

推荐答案

在pycharm中,您可以使用ctrl-q(或在Mac上为ctrl-j)获取光标下方函数的快速文档.

In pycharm you have ctrl-q (or ctrl-j on a mac) for a quick-doc of the function under the cursor.

这篇关于如何获取PyCharm以在Python/IPython控制台和编辑器中显示方法签名和文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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