This Visual Studio Code extension allows you to rename a Markdown heading and automatically update all references (anchor links) to it.
Usage
Open a Markdown file in Visual Studio Code.
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).
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).