Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Structure-Aware Markdown HeadingsNew to Visual Studio Code? Get it now.
Structure-Aware Markdown Headings

Structure-Aware Markdown Headings

false_ape

|
4 installs
| (0) | Free
Intelligent Markdown heading adjustment using document structure analysis.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Structure-Aware Markdown Headings

Overview

A Visual Studio Code extension that intelligently adjusts Markdown heading levels using document structure analysis. Unlike traditional regex-based approaches, it safely avoids modifying # symbols within code blocks and inline comments.

Quickstart

  1. Install the extension from the Visual Studio Code marketplace.
  2. Select the text you want to adjust the heading level for.
  3. Open the command palette (Ctrl+Shift+P or Cmd+Shift+P on macOS) and search for one of the following commands:
    • Increase Heading Level: Increase the heading level of the selected text.
    • Decrease Heading Level: Decrease the heading level of the selected text.
    • Batch Adjust Heading Level: Batch adjust the heading level of the selected text by a specific shift.

Development Guide

  1. Clone the repository and open the project in Visual Studio Code.
  2. Run npm install to install the required dependencies.
  3. Open the .vscode/launch.json file and ensure the following configurations are present:
    • An "extensionHost" launch task.
    • The "args" array contains "--disable-extensions".
    • The "preLaunchTask" is set to "npm: compile".
  4. To run the extension in development mode, press F5 or select "Start Debugging" from the Run menu.
  5. To run the tests, open the command palette and search for "Tasks: Run Test Task", then select "npm: test".

Acknowledgements

Note: This is a fork of Heading Level Adjuster with significant enhancements for structure-aware heading adjustment.

Original Project Fork Version

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