vscode extension to make comments on the right of text line up
Comment Aligner
The "Comment Aligner" extension for Visual Studio Code helps you align comments in your code for better readability and consistency.
Features
- Automatically aligns comments in your code based on the longest line before the comment delimiter.
- Supports multiple programming languages with different comment delimiters.
- Configurable number of spaces before the comment delimiter.
Requirements
No additional requirements or dependencies are needed for this extension.
Extension Settings
This extension contributes the following settings:
comment-aligner.spacesBeforeComment: Number of spaces to add before the comment delimiter. Default is1.
Usage
- Open a file in Visual Studio Code.
- Select the lines of code you want to align comments for.
- Use the command palette (
Ctrl+Shift+PorCmd+Shift+Pon Mac) and typeFormat Commentsto run the command. - Alternatively, you can use the keyboard shortcut
Alt+A Alt+Cto quickly format comments.
Known Issues
- The extension currently supports a limited set of programming languages. If you need support for additional languages, please open an issue or contribute to the project.
Release Notes
1.0.0
- Initial release of Comment Aligner.
Contributing
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue on the GitHub repository.
License
This project is licensed under the MIT License.
For more information
Enjoy!