Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown Minimap HeadersNew to Visual Studio Code? Get it now.
Markdown Minimap Headers

Markdown Minimap Headers

Rajendra Badapanda

|
2 installs
| (0) | Free
Makes markdown headers visible as text labels and colored blocks in the VSCode minimap for quick document navigation
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown Minimap Headers

See your document structure at a glance — right in the VSCode minimap.

VSCode License Version


AI coding tools use markdown files extensively for agent instructions, memory banks, and project context — CLAUDE.md, AGENTS.md, .cursorrules, Copilot workspace instructions, and more. These files grow fast: behavior rules, tool configurations, workflow guidelines, codebase conventions. Before long you're scrolling through 300 lines of instructions trying to find the one section you need to update.

The same goes for READMEs, design docs, architecture notes, and wikis. If you write long markdown documents, you know the pain: scroll endlessly trying to find that one section, lose your place, repeat. The minimap becomes useless white noise.

Markdown Minimap Headers fixes that. It adds three layers of navigation intelligence to every markdown file:

  1. Header labels — your ## headings appear as readable text in the minimap
  2. Scrollbar markers — each header level gets a distinct color in the scrollbar overview ruler and editor gutter
  3. Keyboard navigation — jump between headers without leaving your hands

What it looks like

The minimap goes from a wall of grey pixels to a structured document outline. H1 headers are the boldest; H2 through H6 fade gracefully so you immediately understand the hierarchy — all without opening the Outline panel or scrolling.

Minimap (before)          Minimap (after)
┌──────────────┐          ┌─────────────────┐
│▓▓▓▓▓▓▓▓▓▓▓▓▓▓│          │■ Introduction  │  ← H1 label
│▓▓▓▓▓▓▓▓▓▓▓▓▓▓│          │░░░░░░░░░░░░░░░░░│
│▓▓▓▓▓▓▓▓▓▓▓▓▓▓│          │▪ Setup         │  ← H2 label
│▓▓▓▓▓▓▓▓▓▓▓▓▓▓│          │░░░░░░░░░░░░░░░░░│
│▓▓▓▓▓▓▓▓▓▓▓▓▓▓│          │· Install       │  ← H3 label
│▓▓▓▓▓▓▓▓▓▓▓▓▓▓│          │░░░░░░░░░░░░░░░░░│
└──────────────┘          └─────────────────┘

With Markdown Minimap Headers Extension

Before and after comparison

Extension Settings

The scrollbar overview ruler adds colored markers alongside the minimap — one per header, fading with depth — so you can spot document structure at a glance even without reading the labels.


Features

Header labels in the minimap

Uses VSCode's built-in folding region support — zero runtime overhead. Your headers appear as readable text labels in the minimap the moment you open a markdown file. No configuration required.

Works with any file VSCode recognizes as markdown, including .mdx, .qmd (Quarto), and .rmd (R Markdown).

Requires editor.minimap.showRegionSectionHeaders: true — this is the VSCode default.

Colored markers with visual hierarchy

Each header level gets its own colored marker in the scrollbar overview ruler, plus a background highlight on the header line in the editor. The color fades with depth so H1 leaps out and H6 whispers:

Level Dark theme Light theme
H1 Gold — 100% Blue — 100%
H2 Gold — 70% Blue — 70%
H3 Gold — 40% Blue — 40%
H4 Gold — 20% Blue — 20%
H5 Gold — 10% Blue — 10%
H6 Gold — 5% Blue — 5%

Theme-aware out of the box. Fully customizable via workbench.colorCustomizations.

Note: VSCode's minimap API does not support decoration background colors — the colored markers appear in the scrollbar and editor only. The minimap shows header text labels via folding regions.

Keyboard navigation

Jump between headers without a mouse, the Outline panel, or search:

Command When to use
Markdown: Go to Next Markdown Header Move down to the next heading
Markdown: Go to Previous Markdown Header Move up to the nearest heading

Both are available in the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) when a markdown file is active. Bind them to keys you already have muscle memory for.


Installation

Search "Markdown Minimap Headers" in the VSCode Extensions panel, or install from the command line:

code --install-extension rbadapanda.markdown-minimap-headers

Configuration

Setting Default Description
markdownMinimapHeaders.enabled true Toggle colored minimap decorations on/off
markdownMinimapHeaders.turnOffScrollbarDecorations false Turn off header level indicators in the overview ruler (scrollbar). Editor highlights and minimap labels remain visible.
markdownMinimapHeaders.headerForeground "" Text color for decorated header lines (CSS color value)

Custom colors

Override any header level color in your settings.json:

"workbench.colorCustomizations": {
  "minimapMarkdownHeaders.h1": "#FF6B6B",
  "minimapMarkdownHeaders.h2": "#FF6B6BAA",
  "minimapMarkdownHeaders.h3": "#FF6B6B66"
}

Color IDs: minimapMarkdownHeaders.h1 through minimapMarkdownHeaders.h6.

The header text foreground color can also be customized:

"workbench.colorCustomizations": {
  "minimapMarkdownHeaders.headerForeground": "#FFFFFF"
}

Always show minimap for markdown files

If you use editor.minimap.autohide, the minimap may be hidden when you open markdown files. Add this to your settings.json to keep it visible for all supported languages:

"[markdown][quarto][rmd]": {
    "editor.minimap.autohide": "none"
}

Requirements

  • VSCode 1.88 or later
  • No other extensions required

Known Limitations

  • Code blocks: The folding-marker approach (Layer 1) cannot distinguish headers inside fenced code blocks or YAML frontmatter — these may appear as labels in the minimap. The colored decorations and navigation commands correctly skip them.

Releasing

npm version patch   # or minor / major
git push && git push --tags

GitHub Actions publishes to the VS Code Marketplace automatically on v* tags.


Contributing

Issues and PRs welcome at github.com/rbadapanda/markdown-minimap-headers.


MIT License — free to use, fork, and build on.

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