Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Mermaid CommentNew to Visual Studio Code? Get it now.
Mermaid Comment

Mermaid Comment

CatBraaain

|
373 installs
| (0) | Free
Comment with `%%` for Mermaid lines and with `<!-- -->` for regular Markdown lines, with a single command.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

This Extension is deprecated. Use the Mermaid extension instead.

Mermaid Comment

Comment with %% for Mermaid lines and with <!-- --> for regular Markdown lines, with a single command.

comment-demo-gif

Feature

  • Comment Mermaid lines with command mermaid-comment.toggleLineComment

Keybindings

Default

can toggle comment in Markdown language with ctrl+alt+/.

    {
        "key": "ctrl+alt+/",
        "command": "mermaid-comment.toggleLineComment",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /markdown/"
    },

Advance

can toggle comment in all languages including Markdown language with ctrl+/ like as default

    {
        "key": "ctrl+alt+/",
        "command": "-mermaid-comment.toggleLineComment",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /markdown/"
    },
    {
        "key": "ctrl+/",
        "command": "mermaid-comment.toggleLineComment",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /markdown/"
    },
    {
        "key": "ctrl+/",
        "command": "-editor.action.commentLine",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+/",
        "command": "editor.action.commentLine",
        "when": "editorTextFocus && !editorReadonly && !(editorLangId =~ /markdown/)"
    },

Acknowledgments

Inspiration, code snippets, etc.

  • Toggle Line Comments
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft