Вопрос

In PyDev, when cursor hovers function name, tooltip with docstring text appears.

Is there way to assign a hotkey on this event, for viewing docstrings using only keyboard?

Это было полезно?

Решение

As far as I know, there is no direct keyboard shortcut for this when working with PyDev. For JDT, CDT or PDT F2 should work, but it does not in PyDev.

However, as an alternative, you can hit CTRL+SPACE which brings up the content assist, which will show the documentation right next to it.

Btw: the hover tooltip does not show the docstring only, but the whole content of a method.

Here is how the content assist should look like:

enter image description here

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top