# Diagrams

> **TL;DR**
> `File | Settings | Tools | Diagrams` for Windows and Linux
>
>
>
> `IntelliJ IDEA | Settings | Tools | Diagrams` for macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ![the Settings icon](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.settings.svg)

In the Diagrams menu, you can configure the default visibility settings and layout for diagrams.

For the information on how to create class diagrams, refer to [UML class diagrams](class-diagram.html).

## Content pane

Select the checkboxes next to the elements to be shown on diagrams.

| Item | Description |
| --- | --- |
|                     Show Difference  |
| Details | If this checkbox is selected, all the specified details of the elements will be shown in the UML class diagram for a revision. If this checkbox is not selected, only node elements will be included in the diagram. |
|                  Java Class Diagrams  |
| Class Elements |    Select the checkboxes to show members (fields, constructors, methods, properties and inner classes) within the node elements:     ![umlShowMembers.png](https://resources.jetbrains.com/help/img/idea/2026.2/umlShowMembers.png)   On the diagram, use toolbar buttons ![Node fields](https://resources.jetbrains.com/help/img/idea/2026.2/app.nodes.field.svg), ![Methods](https://resources.jetbrains.com/help/img/idea/2026.2/app.nodes.method.svg), ![Constructors](https://resources.jetbrains.com/help/img/idea/2026.2/uml-support.icons.constructor.svg), ![Properties](https://resources.jetbrains.com/help/img/idea/2026.2/app.nodes.property.svg), and ![Inner classes](https://resources.jetbrains.com/help/img/idea/2026.2/uml-support.icons.innerclass.svg) .     |
| Dependencies | Select the checkboxes below to show dependency links in diagram. |
|  DB Diagrams   |
| Key columns |    For the primary key columns to be shown when a diagram opens, select this checkbox.      When viewing a diagram in the editor, use ![the Key Columns button](https://resources.jetbrains.com/help/img/idea/2026.2/database-plugin.icons.colGoldKey.svg) on the toolbar to show or hide the corresponding columns.   |
| Columns |    For the columns other than the primary key columns to be shown when a diagram opens, select this checkbox.       When viewing a diagram in the editor, use ![the Columns button](https://resources.jetbrains.com/help/img/idea/2026.2/database-plugin.icons.col.svg) on the toolbar to show or hide the corresponding columns.   |
|  Graphical Explain Plan  |
| Attributes |    Toggles the display of query attributes on a query map. These attributes can be a number of rows, index names, or any other additional information about the query.       Enabled:    ![Enabled and disabled attributes on a query plan](https://resources.jetbrains.com/help/img/idea/2026.2/db_query_plan_attributes_enabled.png)   Disabled:    ![Disabled and disabled attributes on a query plan](https://resources.jetbrains.com/help/img/idea/2026.2/db_query_plan_attributes_disabled.png)    |
|                  Project Modules  |
| Libraries | If this checkbox is selected, libraries will be shown in UML diagrams for modules.  |
|  JPA ER Diagram  |
| Properties |     If this checkbox is selected, properties of entity classes are shown when a JPA ER diagram opens.       When viewing a diagram in the editor, you can show or hide these properties by using ![Properties](https://resources.jetbrains.com/help/img/idea/2026.2/app.icons.javaee.gutter.persistenceAttribute.svg) on the toolbar.   |
| Embeddables |     If this checkbox is selected, embeddable objects are shown when a JPA ER diagram opens.       When viewing a diagram in the editor, you can show or hide the embeddables by using ![Embeddable](https://resources.jetbrains.com/help/img/idea/2026.2/app.icons.javaee.newui.persistenceEmbeddable.svg) on the toolbar.   |
| Superclasses |     If this checkbox is selected, superclasses of entity classes are shown when a JPA ER diagram opens.       When viewing a diagram in the editor, you can show or hide the superclasses by using ![Superclass](https://resources.jetbrains.com/help/img/idea/2026.2/app.javaee.persistenceEntity.svg) on the toolbar.   |
|  BPMN 2.0 Diagram  |
| Details | For element details to be shown when a BPMN diagram opens, select this checkbox. |
|  CDI Dependencies Diagram  |
| @Inject |    If this checkbox is selected, injection points are shown when a CDI dependency diagram opens.       When viewing a diagram in the editor, you can show or hide the injection points by using ![@Inject](https://resources.jetbrains.com/help/img/idea/2026.2/JE_ShowInjectionPointsIcon.png) on the toolbar.    |
| @Produces |     If this checkbox is selected, producer methods and fields are shown when a CDI dependency diagram opens.       When viewing a diagram in the editor, you can show or hide the producer methods and fields by using ![@Produces](https://resources.jetbrains.com/help/img/idea/2026.2/JE_ShowProducersIcon.png) on the toolbar.    |
| @Decorator |     If this checkbox is selected, decorator bean classes are shown when a CDI dependency diagram opens.       When viewing a diagram in the editor, you can show or hide the decorators by using ![@Decorator](https://resources.jetbrains.com/help/img/idea/2026.2/app.icons.cdi.decorator.svg) on the toolbar.     |
|  Spring  |
| Local context | If this checkbox is selected, local context will be shown in diagrams. To enable showing local context in the Diagram tab in the editor, click ![Local Context](https://resources.jetbrains.com/help/img/idea/2026.2/spring.icons.fileSet.svg). |
| Properties | If this checkbox is selected, property files will be shown in diagrams. To enable showing property files in the Diagram tab in the editor, click ![Properties](https://resources.jetbrains.com/help/img/idea/2026.2/spring.icons.springProperty.svg). |
| Spring Integration |
|  Show Labels  | If this checkbox is selected, labels will be shown in diagrams. To enable showing labels in the Diagram tab in the editor, click ![Show Labels](https://resources.jetbrains.com/help/img/idea/2026.2/SpringIntegrationDiagramLabels.png). |

> **Note:**
> More nodes appear in this pane depending on the installed and enabled plugins.

## Controls

| Item | Description |
| --- | --- |
| Default layout | Select the desired layout from the Default layout list. Node elements in newly created diagrams will be arranged according to the selected layout. |
| Default scope | Select scope from the Default scope list. Specifying a scope helps you avoid showing in diagram the unnecessary hierarchies. You can define scopes for your project in the [Scopes page](settings-scopes.html) of the Settings (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))) dialog. |
| Fit content after layout | If this checkbox is selected, then after applying a layout selected on the diagram context menu, all diagram elements will be resized to fit into the current diagram area. In diagram, use the ![the Fit Content icon](https://resources.jetbrains.com/help/img/idea/2026.2/app-client.expui.image.fitContent.svg) toolbar button.  |
| Do relayout when new elements were added | If this checkbox is selected, diagram layout will be performed automatically after adding new elements.  |

