Skip to content
Limited Time 40% off for early adopters — Get discount →

Scratch Files

Last updated:

Scratch files let you quickly create temporary Mermaid diagrams without adding files to your project. They’re perfect for experimenting with diagram syntax, drafting ideas, or creating one-off diagrams.

Due to platform limitations, IntelliJ’s built-in New Scratch File action doesn’t include Mermaid in its file type list. Mermaid Studio provides a dedicated action instead.

  1. Open the Find Action dialog with Command + Shift + A Control + Shift + A

  2. Search for New Mermaid Scratch File and select it

  3. A new scratch file opens with full Mermaid Studio support

You can also add the action to a keyboard shortcut or toolbar for faster access.

Scratch files are stored in the IDE’s configuration directory, separate from your project files. To view all your scratch files, open the Scratches and Consoles node in the Project view.