PyCharm 3.4.0 Web Help

Quick Definition Lookup makes it possible to view definition of a symbol (tag, class, method/function, field, etc.) in a pop-up window.


On this page:

To view definition of a symbol at caret, do one of the following
  • On the main menu, choose View | Quick Definition.
  • Press Ctrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+ICtrl+Shift+IAlt Space or Command YShift Command IAlt Space or Command Y.
  • Keeping the Ctrl key pressed, point with your mouse cursor to the symbol of interest, so that it turns to a hyperlink, with the definition of the symbol displayed in a tooltip. Clicking this hyperlink results in opening the respective definition page in the editor.


    • Quick definition tooltip shows hyperlinks to the symbols involved.
    • 2.6+ When you move your mouse pointer within the tooltip, a pin button pin appears. If you pin the tooltip, documentation for the symbol at caret is displayed in the Documentation Tool Window.

Toolbar of the Quick Definition Lookup

Use the icons on the toolbar of the pop-up window to navigate to the source code of the definition and view its usages.

Icon Keyboard shortcut Action
arrowBack.png arrowForward.png Shift+Alt+LeftShift+Alt+LeftShift+Alt+LeftShift+Alt+LeftShift+Alt+LeftShift+Alt+LeftCtrl+Alt+Page UpCtrl+Shift+Alt+RightControl Shift LeftControl Shift LeftControl Shift Left
Shift+Alt+RightShift+Alt+RightShift+Alt+RightShift+Alt+RightShift+Alt+RightShift+Alt+RightCtrl+Alt+Page DownCtrl+Shift+Alt+LeftControl Shift RightControl Shift RightControl Shift Right
Navigate to the previous/next screen in the definition pop-up window after using hyperlinks in the definition.


On a OS X computer, you can also use the three-finger right-to-left and left-to-right swipe gestures.

edit.png F4F4F4F4F4F4F4F12 or Ctrl+Shift+ECommand Down or F4F4F3 Open the source code of the definition for editing, and close the quick definition lookup window.
showDetails Ctrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCommand EnterCommand EnterCommand Enter Open the source code of the definition, and preserve the quick definition lookup window opened.
searchHistoryIcon.gif Alt+F7Shift+Alt+7Shift+Alt+7Alt+F7Alt+F7 or Shift+Alt+SShift+Alt+F7Alt+F7Ctrl+GAlt F7Alt F7Shift Command G Open the usages of the detected definition across the project in the Find tool window.

See Also



Web Resources: