Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Same InkNew to Visual Studio Code? Get it now.
Same Ink

Same Ink

paccodes

|
2 installs
| (0) | Free
Highlights code blocks in the Markdown preview with your current editor color theme.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Same Ink icon

Same Ink

Visual Studio Marketplace Version    Visual Studio Marketplace Installs    Visual Studio Marketplace Rating    License: MIT

VS Code's built-in Markdown preview colors code blocks with its own fixed light and dark palettes, ignoring your editor theme, so snippets in the preview never quite match the code you're writing.

Same Ink highlights code blocks in VS Code's Markdown preview with your current editor color theme, so snippets in the preview look the same as in the editor.

The Markdown preview following six different editor color themes

Features

  • Uses the exact token colors of the active theme, built-in or installed from an extension.
  • Follows theme switches, including automatic light/dark switching (window.autoDetectColorScheme).
  • Loads language grammars on demand: a block in a new language appears plain for a moment, then the preview refreshes with highlighting.
  • Leaves the code block background and border to the preview, so blocks use the theme's textCodeBlock.background and stay distinct from the page.

Works with all popular themes, dark or light.

Highlighting is done by Shiki, which supports 200+ languages.

Usage

No settings, no commands: install the extension and open any Markdown preview (Ctrl+Shift+V). Your code blocks now match your theme.

Limitations

  • Themes that use the legacy .tmTheme format only contribute their base colors, not token colors.
  • The preview follows the theme you select, not the themes you hover over in the theme picker.
  • Semantic highlighting from language servers isn't available in the preview, so colors match the editor's TextMate highlighting.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft