Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>VS AlignerNew to Visual Studio Code? Get it now.
VS Aligner

VS Aligner

DungGramer

|
735 installs
| (0) | Free
| Sponsor
VS Aligner is a powerful Visual Studio Code extension that simplifies code alignment and comment formatting. It enhances your coding experience by allowing you to align code comments effortlessly according to your preferred tab size and alignment character.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode Aligner Extension

License

Align your comments effortlessly in Visual Studio Code with the VSCode Comment Aligner Extension. This extension allows you to quickly align comments in your code for improved readability and consistency.

Features

  • Align comments within a selected range in your code.
  • Automatically detects and aligns comments with different lengths.
  • Supports single-line comments.
  • Define the character users want to align columns.
  • Easily customizable to fit your preferred comment alignment style.

Installation

  1. Launch Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
  3. Search for VSCode Comment Aligner in the Extensions view search box.
  4. Click the Install button to install the extension.
  5. Once installed, you can use the extension to align comments in your code.

Usage

  1. Select the lines containing the comments you want to align.
  2. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
  3. Type "VS Align" and select the "VS Align: Align" command.
  4. Your comments will be automatically aligned according to the extension's rules.

Configuration

You can configure the behavior of the VSCode Comment Aligner Extension by modifying your VSCode settings. To customize the extension's settings, navigate to File > Preferences > Settings and search for "VSCode Comment Aligner."

Here are some available configuration options:

  • commentAligner.tabSize: Set the number of spaces for alignment (default is 4 spaces).
  • commentAligner.alignmentChar: Choose the character used for alignment (default is space).
  • commentAligner.delimiter: Define the character users want to align columns.
  • And more!

License

This extension is licensed under the MIT License.

Contributing

Contributions are welcome! Feel free to open issues or pull requests on the GitHub repository.

Contact

For any questions, issues, or suggestions, please open an issue on the GitHub repository.


Happy coding!

DungGramer

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