Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Format CommentNew to Visual Studio Code? Get it now.
Format Comment

Format Comment

Rodrigo Cesar de Freitas Dias

|
1,861 installs
| (0) | Free
Formats comments to fit a maximum number of chars on each line.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Format Comment

A Visual Studio Code extension that formats code comments to fit a maximum number of chars on each line.

Usage

Select the comment lines and choose the Format Comment command from your Command Palette.

Lines starting with //, ///, //!, #, or * will be formatted.

Setting Meaning Default
format-comment.settings.maxLength Maximum length of the line. 80

Example

Example

License

Licensed under MIT license, see LICENSE.md for details.

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