Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Sidebar PreviewerNew to Visual Studio Code? Get it now.
Sidebar Previewer

Sidebar Previewer

MG12

|
14 installs
| (0) | Free
Empower your VS Code Activity Bar with real-time rendering, scroll-sync, and zoom controls. Supports a wide range of formats covering Markdown, LaTeX, Mermaid, JSON, YAML, TOML, XML, CSV, and TSV.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Sidebar Previewer

Version License

Language: English | 简体中文 | 繁體中文-台灣 | 繁體中文-香港 | 日本語

Empower your VS Code Activity Bar with real-time rendering, scroll-sync, and zoom controls. Supports a wide range of formats covering Markdown, LaTeX, Mermaid, JSON, YAML, TOML, XML, CSV, and TSV.

Why do you need it?

In the age of AI-driven development, documentation is now a first-class citizen, processed locally and versioned directly in-repo. With the secondary sidebar becoming a mainstream hub for AI workflows, conventional previewing feels cramped and clunky. Enter Sidebar Previewer: it delivers real-time rendering in your sidebar, allowing you to fluidly switch between coding and previewing, with an added presentation mode to cover your entire workflow.

Project Repository

GitHub: https://github.com/wuzhao/vscode-sidebar-previewer

Screenshots

Markdown Markdown LaTeX LaTeX Mermaid Mermaid
CSV / TSV CSV / TSV JSON / YAML / TOML / XML JSON / YAML / TOML / XML

Supported Files

Type Extensions
Markdown .md, .markdown
LaTeX .tex, .katex, .latex
Mermaid .mmd, .mermaid
JSON .json, .jsonc
YAML .yml, .yaml
TOML .toml
XML .xml
CSV .csv
TSV .tsv

Feature Overview

Markdown

  • Front matter table
  • GitHub alert block rendering
  • Task list checkbox toggle-writeback
  • Code highlighting and copy button
  • KaTeX and Mermaid block rendering
  • Follow-scroll and locate between editor and preview

LaTeX

  • KaTeX rendering for inline formulas and common math environments
  • Follow-scroll and locate between editor and preview
  • Zoom support

Mermaid

  • Basic syntax precheck with clear error feedback
  • Drag-to-pan interaction when zoomed

JSON / YAML / TOML / XML

  • Collapsible tree view
  • Expand all / collapse all
  • Click key to jump to source line
  • Copy highlighted data-tree locator as jq/yq-style path from toolbar
  • Comment icon on keys with hover tooltip
  • Focus-aware selection highlight (blue when focused, gray when unfocused)

CSV / TSV

  • Render as a table for preview with sticky first row and first column
  • Follow-scroll and locate between editor and preview
  • Bidirectional selection with click-and-drag support
  • Focus-aware selected-cell highlight (blue when focused, gray when unfocused)
  • Multi-cell quick actions: Copy as Markdown Table or Copy as ASCII Table
  • Cmd/Ctrl+C: copy single selected cell text, or copy multi-cell selection as TSV

Installation

Install from VS Code Marketplace

  1. Open VS Code
  2. Open Extensions view (Cmd+Shift+X on Mac, Ctrl+Shift+X on Windows/Linux)
  3. Search for Sidebar Previewer
  4. Click "Install" on the extension

Or install from the extension page: Sidebar Previewer on VS Code Marketplace

Build and install from source

  1. Clone the repository: git clone https://github.com/wuzhao/vscode-sidebar-previewer.git
  2. Enter the project folder: cd vscode-sidebar-previewer
  3. Install dependencies: npm install
  4. Build extension output and bundled assets: npm run package:vsix
  5. Package the VSIX: npx @vscode/vsce package
  6. In VS Code, run Extensions: Install from VSIX and select the generated sidebar-previewer-<version>.vsix

Usage

  1. Open any supported file (.md, .markdown, .tex, .katex, .latex, .mmd, .mermaid, .json, .jsonc, .yml, .yaml, .toml, .xml, .csv, .tsv)
  2. Click the Sidebar Previewer icon in the Activity Bar
  3. The preview panel automatically renders the current file
  4. Use toolbar buttons or Cmd/Ctrl + mouse wheel to zoom
  5. In Mermaid preview, drag the diagram to pan
  6. In JSON/YAML/TOML/XML preview, selected entries use focus-aware highlight (focused blue / unfocused gray); CSV/TSV preview keeps sticky headers, supports cell locate, focus-aware highlight, multi-cell copy actions (Copy as Markdown Table / Copy as ASCII Table), and Cmd/Ctrl+C copy behavior

How to show the VS Code Secondary Side Bar?

  1. Open the Command Palette and run View: Toggle Secondary Side Bar
  2. Or use menu path View > Appearance > Secondary Side Bar
  3. If needed, drag the Sidebar Previewer view into the Secondary Side Bar area

Acknowledgements

  • marked: parses Markdown into HTML for preview rendering.
  • mermaid: renders Mermaid diagram blocks in Markdown and .mmd/.mermaid files.
  • katex: renders math formulas for Markdown and LaTeX preview.
  • highlight.js: provides syntax highlighting for code blocks.
  • js-yaml: parses YAML data for structured preview.
  • toml: parses TOML data for structured preview.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft