Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>RewrapNew to Visual Studio Code? Get it now.
Rewrap

Rewrap

stkb

|
605,745 installs
| (108) | Free
Hard word wrapping for comments and other text at a given column.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
For VS Code, Open VSX and Visual Studio.
Latest stable version 1.16.3 / pre-release 17.8 / changelog

Rewrap



The main Rewrap command is: Rewrap Comment / Text, by default bound to Alt+Q. With the cursor in a comment block, hit this to re-wrap the contents to the specified wrapping column.

Features

  • Re-wrap comment blocks in many languages, with per-language settings.
  • Smart handling of contents, including Java-/JS-/XMLDoc tags and code examples.
  • Can select lines to wrap or multiple comments/paragraphs at once (even the whole document).
  • Also works with Markdown documents, LaTeX or any kind of plain text file.

The contents of comments are usually parsed as markdown, so you can use lists, code samples (which are untouched) etc:


See the docs site for more info.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft