Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Comment WrapNew to Visual Studio Code? Get it now.
Comment Wrap

Comment Wrap

NextFaze

|
1,624 installs
| (2) | Free
Easily re-wrap comments to a given width
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Comment Wrap

Easily re-wrap comments to a given line width.

Turns this:

// this is
// my comment that
// does not wrap properly

Into this:

// this is my comment that does not wrap
// properly

Supports:

  • ✅ Standard (JavaScript/TypeScript/Java etc.) style comments ( // )
  • ✅ Block comments ( /* */ )
  • ✅ Dart-doc comments ( /// )
  • ❌ Anything else (Python, bash etc.) yet

Settings

The default wrap length is 80 - it can be customized with user setting commentWrap.printWidth:

{
  "commentWrap.printWidth": 120
}

Disclaimer

This extension is in the very early stages of development (mostly a proof-of-concept at this stage, put together in about 15 minutes) so may not be fully functional.

Checkout our other extension

  • JSON Parse & Stringify
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft