使用代码完成查看 PyDoc [英] Viewing PyDoc with code completion

查看:48
本文介绍了使用代码完成查看 PyDoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上面是 PyCharm,下面是带有 PyDev 的 Eclipse.

Above is PyCharm and below is Eclipse with PyDev.

如何像在 Eclipse+PyDev 中一样显示 PyDoc 工具提示和自动完成窗口?我看过一些 PyCharm 的屏幕截图,它们正好显示了这一点(例如.http://i.imgur.com/wIvAt.png) 但我不知道如何让我的工作以这种方式工作.我试过IDE Settings>>Editor>>Code Completion>>Auto popup documentation in ms,设置为0,但是好像没有效果,我还是要按Ctrl-Q查看PyDoc.

How do I show the PyDoc tooltip along with the autocomplete window like in Eclipse+PyDev? I've seen a few screenshots of PyCharm which show exactly this (eg. http://i.imgur.com/wIvAt.png) but I cannot figure out how to make mine work this way. I tried IDE Settings>>Editor>>Code Completion>>Auto popup documentation in ms, set it to 0, but it seems to have no effect, I still have to press Ctrl-Q to view the PyDoc.

推荐答案

此功能仅适用于显式代码完成(当您按 Ctrl+Space 启动完成).它不会出现在自动代码完成中.设置对话框提到它:

This feature works only on the explicit code completion (when you press Ctrl+Space to start the completion). It will not appear on automatic code completion. Settings dialog mentions it:

这篇关于使用代码完成查看 PyDoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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