Displaying function documentation in PyDev

若如初见. 提交于 2019-11-30 08:12:23

Doesn't look like it currently. Googled around for this issue and the top result pointed me to this Pydev-users post:

On Mon, May 3, 2010 at 5:45 AM, Janosch Peters wrote:

Hi,

when I hover over a function or class, I get a tooltip showing the whole definition of the function/class not only the docstring (as I would expect).

Is this expected behaviour? I think it would be more useful, if only the content of the docstring is shown.

It's currently expected. Please enter a feature request to make showing just the docstring an option.

Cheers,

Fabio

Looked around the Pydev bug/feature tracker and didn't find this specific issue entered. You might want to enter it in the Pydev feature request tracker and see if you can get help there.

I have submitted a feature request in the PyDev bug tracker, with ID 863.

In PyCharm when I hover onto a method name, I can see a popup showing only the docstring of every method, without implementation details. And, the tags like @param xx:, @rtype, etc., are parsed correctly and shown in a readable format in the popup, and different style like spinx/epytext/google/plain can be tweaked in settings so that it can recognize all formats.

I would like to suggest the same in PyDev: a popup which shows docstring with tags parsed, without implementation details, and if like javadoc, one can use <code>some code</code> to render it like in HTML, better.

Consider vote up to this ticket if you also want this. (And maybe vote up here, too)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!