Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Markdown ReflowNew to Visual Studio Code? Get it now.
Markdown Reflow

Markdown Reflow

Darrien Rushing

| (0) | Free
Manual prose reflow for Markdown and MDX without touching code or MDX metadata blocks.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown Reflow

Manual prose reflow for Markdown and MDX in VS Code.

This extension adds a single command, Markdown Reflow: Reflow Prose, that wraps plain prose paragraphs to a configurable line length. It does not split words and intentionally avoids rewriting protected Markdown and MDX structures.

Behavior

  • Reflows the current selection when a selection exists and markdownReflow.selectionOnlyWhenSelected is enabled.
  • Reflows the full document when there is no selection.
  • Wraps prose to 100 columns by default, or to the user-defined markdownReflow.maxLineLength value when set.
  • Leaves these regions unchanged:
    • fenced code blocks
    • indented code blocks
    • ATX headings
    • blockquotes
    • tables
    • list items and list continuation blocks
    • frontmatter blocks
    • MDX import/export lines and export object blocks
    • JSX/HTML blocks

Settings

  • markdownReflow.maxLineLength
  • markdownReflow.languages
  • markdownReflow.preserveListItems
  • markdownReflow.selectionOnlyWhenSelected

Development

npm install
npm run build
npm test

To package the extension:

npm run package

Before publishing to the VS Code Marketplace, set final values for publisher, repository, homepage, and bugs in package.json.

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