Color Highlighter is a Visual Studio Code extension that highlights specific keywords in your code comments (e.g., TODO, FIXME) with customizable background colors. Additionally, the extension provides a command to count the total number of non-empty lines of code in the entire project.
Features
1. Comment Highlighting
Highlights TODO comments with a yellow background.
Highlights FIXME comments with a red background.
Customizable keywords via settings.
2. Count Lines of Code
Counts all non-empty lines of code in the project.
Supports popular programming languages such as JavaScript, TypeScript, Python, Java, C, C++, and C#.
Usage
Highlight Comments
Open a file with one of the supported programming languages.
Add comments containing TODO or FIXME (or your custom keywords).
The comments will automatically be highlighted in yellow (for TODO) or red (for FIXME).
Toggle Highlighting
Open the command palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
Search for Toggle Comment Highlighter and select the command to enable or disable highlighting.
Count Lines of Code
Open the command palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
Search for Count Lines of Code and select the command.
A notification will display the total number of non-empty lines of code in the project.
Configuration
You can customize the keywords to highlight via your VS Code settings:
Go to File > Preferences > Settings (or Cmd+, on macOS).
Search for Comment Highlighter.
Update the list of keywords to highlight (default: TODO, FIXME).