Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Highlight Comments SPNew to Visual Studio Code? Get it now.
Highlight Comments SP

Highlight Comments SP

SMIT_PATEL_SP

|
21 installs
| (0) | Free
Highlights comments in different programming languages using customizable colors and background opacity
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Highlight Comments Extension

⚠️ Disclaimer ⚠️

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

  1. Open your settings (File > Preferences > Settings) and search for “Highlight Comments”.
  2. 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.
  3. 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:

  • Sharing the extension
  • Starring the repository
  • Reporting bugs
  • Suggesting new features
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft