Skip to main content

Commands

MdStyled adds four commands to the VS Code command palette (Cmd+Shift+P / Ctrl+Shift+P).

CommandDescription
MdStyled: Open PreviewOpen the styled preview in the current editor area
MdStyled: Open Preview to SideOpen the styled preview beside the current editor
MdStyled: Apply TemplateCreate a starter .mdstyled/ folder and insert directives
MdStyled: Set Default TemplateChoose the global default template for files with no styling

Quick access​

When you have a Markdown file open, the MdStyled: Open Preview button appears in the editor title bar.

Settings​

SettingPurposeDefault
mdstyled.defaultTemplateTemplate used when a file has no styling"" (asked once)
mdstyled.extensions.enabledBuilt-in extensions to enable["mermaid", "copy-code", "highlight"]

Default template​

{
"mdstyled.defaultTemplate": "editable-dark"
}

Valid values: none, default-light, default-dark, interactive-light, interactive-dark, editable-light, editable-dark.

Leaving it empty makes MdStyled ask once on the first preview of an unstyled file.

Extensions​

Toggle built-in preview extensions:

{
"mdstyled.extensions.enabled": ["mermaid", "copy-code", "highlight"]
}

See Built-in Extras for details.