PyCharm Edu 2019.1 Help

Navigating to Declaration or Type Declaration of a Symbol

While editing your source code, you might need to navigate to the location where a particular named code reference (a symbol) has been first declared. The Navigate | Declaration command enables you to navigate to the initial declaration of a symbol from its usage. The Navigate | Type Declaration command enables you to navigate to the symbol's type declaration.

Important note

Navigate | Declaration
  • Applies source code symbols, CSS, HTML, or XML tags and attributes, DTD and schema elements and attributes, and references in comments.

  • Does not apply to the primitive types.

To navigate to the symbol declaration

  1. Place the caret at the desired symbol in the editor.

  2. Do one of the following:
    • On the main menu, choose Navigate | Declaration.

    • Press Ctrl+B.

    • Click the middle mouse button.

    • Keeping Ctrl ( for macOS) pressed, hover your mouse pointer over the symbol. When the symbol turns into a hyperlink, its declaration will be displayed in the tooltip. Click the hyperlink without releasing the key to open the declaration in the editor.

Last modified: 29 June 2019