Code Folding
Last updated:
Large diagrams can be difficult to navigate. Code folding lets you collapse sections of your diagram to focus on what matters.
How to Fold Code
Section titled “How to Fold Code”Look for the ⌄ icon in the editor gutter. Click it to collapse that section.
To expand a collapsed section, click the ⌃ icon that appears in its place.
Keyboard Shortcuts
Section titled “Keyboard Shortcuts”- Collapse current section:
Ctrl+NumPad-(Windows/Linux) orCmd+NumPad-(macOS) - Expand current section:
Ctrl+NumPad+(Windows/Linux) orCmd+NumPad+(macOS) - Collapse all:
Ctrl+Shift+NumPad-(Windows/Linux) orCmd+Shift+NumPad-(macOS) - Expand all:
Ctrl+Shift+NumPad+(Windows/Linux) orCmd+Shift+NumPad+(macOS)
What Can Be Folded
Section titled “What Can Be Folded”Different diagram types have different foldable sections:
- Flowcharts - Subgraphs
- ER Diagrams - Entity blocks
- State Diagrams - State blocks and composite states
- Class Diagrams - Class definitions
- Sequence Diagrams - Loop, alt, opt, and other blocks
- Gantt Charts - Sections