This is not the official Visual Studio Code or Microsoft extension. This is a community-created extension that highlights comments in your code (both single-line and multi-line) using a customizable background and border color.
Features
Highlights single-line comments (e.g. // comment) and multi-line comments (e.g. /* comment */) in various languages (JavaScript, TypeScript, Python, Ruby, PHP, Rust, Swift, Kotlin, Java, C, C++, C#, Go, HTML, CSS, SCSS, and Less).
Customize the color (via hex) and background opacity (0–100) for single-line and multi-line comments.
Usage
Open your settings (File > Preferences > Settings) and search for “Highlight Comments”.
Adjust the settings (for example, “highlightComments.singleLineCommentColor” and “highlightComments.multiLineCommentColor”) to your desired hex color (e.g. “#6A9955”) and “highlightComments.commentBackgroundOpacity” (default 20) as needed.
Reload your editor (or restart VS Code) if you change the settings.
Example
In a JavaScript file, a single-line comment (// comment) and a multi-line comment (/* comment */) will be highlighted (with a background and a left border) using the configured colors.
Acknowledgments
Inspired by the need for better code readability and debugging experience
Thanks to the VS Code team for their extensible editor & excellent extension API
Thanks to all contributors who have helped improve this extension
Support
If you find this extension helpful, please consider: