Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>D3fend EditorNew to Visual Studio Code? Get it now.
D3fend Editor

D3fend Editor

Roberto Polli

|
182 installs
| (0) | Free
A markdown editor that supports d3fend autocompletion and diagrams. It is based on Matt Bierner's Markdown Preview Mermaid Support extension.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

D3fend Editor

Adds D3FEND editing support to the Markdown preview for Mermaid diagrams https://github.com/mjbvz/vscode-markdown-mermaid.

D3FEND entities are rendered as fontawesome or unicode icons according to the map defined in this d3fend-mermaid datafile.

A mermaid diagram in VS Code's built-in markdown preview

Icons contain a tooltip with the D3FEND entity name and an hyperlink to the D3FEND website.

Currently supports Mermaid version 10.8.x.

Usage

For basic usage instructions, see the markdown-mermaid extension.

Create diagrams in markdown using mermaid fenced code blocks:

```mermaid
graph TD;

    u((User d3f:User))
    api[REST API d3f:WebServerApplication]
    database[MySQL d3f:Database]
    u -->|d3f:WebResourceAccess| --> api
    api -->|d3f:writes| database
```

Further examples are in docs.

Configuration

  • markdown-mermaid.lightModeTheme — Configures the Mermaid theme used when VS Code is using a light color theme. Supported values are: "base", "forest", "dark", "default", "neutral". Currently not supported in notebooks.

  • markdown-mermaid.darkModeTheme — Configures the Mermaid theme used when VS Code is using a dark color theme. Supported values are: "base", "forest", "dark", "default", "neutral". Currently not supported in notebooks.

  • markdown-mermaid.languages — Configures language ids for Mermaid code blocks. The default is ["mermaid"].

Using custom CSS in the Markdown Preview

You can use the built-in functionality to add custom CSS. More info can be found in the markdown.styles documentation

For example, add Font Awesome like this:

"markdown.styles": [
    "https://use.fontawesome.com/releases/v5.7.1/css/all.css"
]

Use it like this:

```mermaid
graph LR
    fa:fa-check-->fa:fa-coffee
```
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft