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.
- 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.
- Launch Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
- Search for VSCode Comment Aligner in the Extensions view search box.
- Click the Install button to install the extension.
- Once installed, you can use the extension to align comments in your code.
- Select the lines containing the comments you want to align.
- Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
on macOS). - Type "VS Align" and select the "VS Align: Align" command.
- Your comments will be automatically aligned according to the extension's rules.
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!
This extension is licensed under the MIT License.
Contributions are welcome! Feel free to open issues or pull requests on the GitHub repository.
For any questions, issues, or suggestions, please open an issue on the GitHub repository.
Happy coding!