Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown StylesheetsNew to Visual Studio Code? Get it now.
Markdown Stylesheets

Markdown Stylesheets

Tuur Bruneel

|
1 install
| (0) | Free
Provides custom Markdown preview and export styling with a fixed-width centered layout, horizontally scrollable tables, blockquotes, and code blocks with a copy-to-clipboard button, plus switchable GitHub and VS Code themes.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown Stylesheets

Centers VS Code's Markdown Preview and exported .htmd documents at a comfortable reading width with scrollable tables, blockquotes, and code blocks with a copy-to-clipboard button, and lets you switch preview and export themes from the Command Palette.

Why It Exists

By default, VS Code's Markdown Preview expands prose edge-to-edge across wide monitors, clips or wraps wide tables and blockquotes, lacks a copy button on fenced code blocks, and forces you to edit raw CSS file paths in settings whenever you want a fixed GitHub or VS Code theme.

Once installed, Markdown Stylesheets gives every preview and exported .htmd file a centered reading column, horizontally scrollable tables, blockquotes, and code blocks, and one-click code copy buttons while following whatever VS Code color theme is active, plus a two-keystroke theme switcher.

Themes

Theme Description
"auto" (default) Follows your active VS Code color theme while keeping the centered layout.
"vscode-light2026" VS Code Light 2026 palette with crisp dark text on a white page.
"vscode-dark2026" VS Code Dark 2026 palette tuned for low-glare reading.
"github-light" GitHub Light styling matching how Markdown renders on GitHub in light mode.
"github-dark" GitHub Dark styling matching how Markdown renders on GitHub in dark mode.

Selecting any theme updates both VS Code's live Markdown Preview and .htmd documents exported with Markdown HTMD Exports, while keeping any extra custom stylesheets you already configured intact.

Usage

Centered layout, scrollable blocks, and code copy buttons activate automatically when you install the extension. To switch color themes, press Ctrl+Shift+P and run Markdown Stylesheets: Select Theme, or set "markdown-stylesheets.theme" directly in VS Code Settings.

Companion Projects

Each extension in this suite handles one responsibility and works on its own, except Markdown HTMD Exports for Antigravity which builds on Markdown HTMD Exports. Both VS Code's built-in Markdown Preview and Markdown HTMD Exports follow your active VS Code color theme and custom Markdown stylesheets out of the box, and automatically pick up Markdown Alerts and Markdown Stylesheets whenever they are installed.

Extension What It Provides Works With
Markdown Alerts GitHub Alert callout parsing and styling ([!NOTE] through [!CAUTION]). Standalone in Markdown Preview; picked up automatically by Markdown HTMD Exports.
Markdown Stylesheets (this extension) Centered reading width, scrollable tables and blockquotes, code copy buttons, and switchable GitHub / VS Code themes. Standalone in Markdown Preview; picked up automatically by Markdown HTMD Exports.
Markdown HTMD Exports Self-contained .htmd export, auto-refresh on save, built-in VS Code .htmd viewer, and Windows browser association. Standalone (uses active VS Code theme and custom stylesheets); adopts Markdown Alerts and Markdown Stylesheets if installed.
Markdown HTMD Exports for Antigravity Antigravity agent hook and CLI skill that keep .htmd files synced when agents edit .md files on disk. Requires Markdown HTMD Exports (installed automatically) and inherits your full VS Code setup.

Documentation

  • Technical Documentation — Stylesheet injection, global settings reconciliation, theme CSS reference, and packaging.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft