PyCharm 2021.1 Help

View diagrams

Basics

You can invoke UML class diagram from different places:

  • From the various tool windows.

  • From the Navigation bar.

  • From the Structure tool window.

  • From the editor.

PyCharm displays UML diagrams in two modes:

  • In a popup.

  • In a separate editor tab.

PyCharm makes is possible to choose diagram type:

  • Python class diagram

  • Django model dependency diagram (for the Django projects).

  • Google App Engine model dependency diagram (for the Google App Engine projects).

Opening a UML class diagram

  1. Select the desired item, or open it in the editor.

  2. Do one of the following:
    • On the context menu of the selection, click Diagram, and on the submenu, select the way you want to view the model: Show Diagram or Show Diagram Popup.

    • Press Ctrl+Alt+Shift+U or Ctrl+Alt+U.

  3. From the list, choose the diagram type:

    Py select diagram type

The diagram is displayed in the editor tab or in the popup:

Py show class diagram

Tips and tricks

  • You can open a UML class diagram without using your pointing device. Consider such a workflow: press Alt+Home, then press Ctrl+Alt+U.

  • It is possible to view a UML class diagram of a Python package. Just select a Python package in the Project tool window, and press Ctrl+Alt+U:

    Py package diagram

Last modified: 15 March 2021