Flowgraph Studio for VS CodeSee your Mermaid diagrams in VS Code exactly as Flowgraph Studio draws them: saved positions, rich nodes with icons, and your repository's theme. Preview Everything is drawn and edited on your computer. Nothing is sent anywhere unless you choose Open on flowgraph.studio or sign in.
Preview a diagramOpen a
The preview redraws as you type, before you save. Drag to move around, hold Diagrams saved from Flowgraph Studio keep their layout: the positions you set on the website travel in the diagram's code, so the preview draws them where you put them. Edit visuallyChoose Edit Visually in the editor's title bar (or the line of links at the top of a
The file is the only copy. Each change is an ordinary edit of it, so Undo, Save, the unsaved dot and git work as they do for typing, and typing in the code redraws the canvas. Positions are kept in a Diagrams in MarkdownClick Preview in Flowgraph above any
VS Code's own Markdown preview draws the blocks with Flowgraph too, in your theme and with icons.
Mistakes, in plain wordsA mistake is explained at the bottom of the preview, with the last good drawing kept behind it, and listed in the Problems panel on the line where it is.
StylesPreviews use the same style as your diagrams elsewhere, looked up in this order:
In a folder you haven't trusted, the folder's own ExportClick Export… in the preview, or run Flowgraph: Export Diagram…, and choose:
Images are made exactly as flowgraph.studio makes them. Signed out, they carry the small Flowgraph Studio watermark, as signed-out exports there do. Signed in, your plan decides: Free has 10 watermark-free exports a month (shared with the website, and each version of a diagram counts once), and Pro has no limit. Sign inEverything above works without an account. Signing in brings your plan into VS Code:
Click Sign In in the Flowgraph Studio view in the activity bar, or choose Sign in with Flowgraph Studio from the Accounts menu. Your browser opens flowgraph.studio, where you approve the connection; you're then sent back to VS Code. The connection is an API key named after your editor, kept in your system's keychain, and listed in Account settings → Render API on the website, where you can revoke it. Sign Out gives it back. If your browser can't send you back to the editor (some remote setups), run Flowgraph: Sign In with API Key and paste a key from Account settings → Render API. Saved diagrams and linked files (Pro)The Saved Diagrams section of the Flowgraph Studio view lists the diagrams in your account, by project. Click one to open it, read-only, in its own style with its preview; use Save into Workspace… to make it a A Mermaid file in your workspace can be linked to a saved diagram: Save to Flowgraph Studio (in the line of links at the top of the file, the editor's
Saved diagrams belong to your account, so links are kept by VS Code for you in this workspace, not in the repository; a teammate links their own copy. A linked file shows Flowgraph in the status bar, with the same actions. Diagrams from your codeRight-click a folder or a source file in the Explorer (or run Flowgraph: Draw Code Diagram…) and choose:
TypeScript, JavaScript, Python, Java, Go and C# are read. The diagrams are drawn on your computer by the same code as flowgraph-cli and the website, with no account and no network: your code never leaves the machine. They open as Markdown with notes on anything left out, with the first diagram in the preview; save the file, or open a diagram on flowgraph.studio. Keep README diagrams up to dateIf the repository has a Code diagrams and sync read the folder's files (and sync writes them), so they run only in a folder you trust. Open on flowgraph.studioOpen on flowgraph.studio (in the preview's title bar, a file's menus, the command palette, and above each Markdown block) opens the diagram in the web editor, with its name and style, to drag, style and share it. The diagram travels in the link itself, after the Settings
RequirementsVS Code 1.90 or later. The extension is also on Open VSX, for editors that install from there. LicenceFree to use, under the licence included with the extension (its LICENSE file). The bundled open-source packages and icon sets, and their licences, are listed in |




