0

I've been using Eclipse PyDev, which can show you the source code snippet of an object or a function when your mouse hovers over it.

I'm aware that PyCharm can show a quick documentation snippet on hover: How can I make docstrings popup on hover in PyCharm?

However, the ability to hover and peek at the source code is very important to my workflow. I wonder whether there's a built-in way or a plugin to achieve this?

Community
  • 1
  • 1
Ainz Titor
  • 1,497
  • 1
  • 15
  • 22
  • Did you try "Go to definition" action? It is called by `Ctrl+B` on Windows and Unix. – user2235698 Apr 17 '17 at 14:01
  • @user2235698 I know that. What I want is a similar behavior from PyDev. In Pydev, you don't need to leave the current line/file to peek at the source snippet by hovering over it. – Ainz Titor Apr 17 '17 at 15:51

1 Answers1

0

You can do this for functions using the "Open quick definition lookup" in the default keymap.

The keyboard shortcut is Ctrl+Shift+I while cursor is on the function call. However, this only seems to work for definitions and not objects.

Min14
  • 3
  • 1
  • 1
  • 2