Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Rename Markdown HeadingNew to Visual Studio Code? Get it now.
Rename Markdown Heading

Rename Markdown Heading

LWilhelmer

|
21 installs
| (0) | Free
Renames a Markdown heading and updates its references in the file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rename Markdown Heading

This Visual Studio Code extension allows you to rename a Markdown heading and automatically update all references (anchor links) to it.

Usage

VS Code Screenshot

  1. Open a Markdown file in Visual Studio Code.
  2. Right-click a Markdown heading and select Rename Markdown heading. Alternatively, run the Rename Markdown heading command from the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
  3. Enter the new name for the heading.

The heading is renamed, and all references to it (e.g., [link text](#old-heading)) are updated.

Example

Before Renaming

# Old Heading

This is some content.

Here's a [link to the heading](#old-heading).

After Renaming

# New Heading

This is some content.

Here's a [link to the heading](#new-heading).
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft