CatBraaain / vscode-mermaid-comment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:MIT License


Languages

Language:JavaScript 100.0%