IMPORTANT: If you have the old version of this extension installed Project Notes + TODO Highlighter it should be removed before installing this newer version. They are not compatible with each other and will cause issues if they are run simutaneously.
Note: This is a complete rewrite of my earlier version Project Notes + TODO Highlighter found here on VS Code Marketplace and on Github. The syntax highlighting was only intended to be a minor addition to the extension but it has grown to the point where it really needed be its own seperate extension. The new Project Notes extension without comment highlighting can now be found on VSCode Marketplace and on Github. Seperating the old extension into two extensions allows me to focus exclusivly on each of the new extensions as needed. The old extension will remain available for those that wish to use it but it will only receive limited support for bug fixes if they are discovered.
- Features
- Screenshots
- Settings
- Commands
- The Tag Browser
- Changing the Default Tag Browser Colors
- Recommended
- Release Notes and Changelog
- Adds syntax highlighting in comments to the default tags
BUG, CHANGED, DEBUG, FIXME, HACK, IDEA, NOTE, OPTIMIZE, RESEARCH, REVIEW, TEMP and TODO Tagscan be in single or multi-line commenmtsTagsare case insensitiveTagswithout trailing colon highlight just the tagTagswith trailing colon highlight the entire lineTags browserto view all project filesTagsin theComment Highlighterpanel and jump to tag on selectionTags browserdisplays the project files tag total tags count on the far right of the filenameTags browserUser definable colors for all default tags- In your
settings.jsonunder the key "workbench.colorCustomizations" type "chTreeItem." to get a popup of all available colors
- In your
- New
Tagscan be added to the settings file - All
Tagscan be enabled or disabled individually in thetag-settings.jsonfile tag-settings.jsonsettings file has accompanying JSON Schema to aid in creating and editing tags- Highlighting of user definable
Tag Blocks- Any text surrounded by user definable text characters - Comment highlighting is based on the files extension allowing for highlighting in file languages unkown to VS Code
- Supported file extensions "asm", "ini", "c", "cc", "cp", "cs", "cpp", "c++", "cxx", "cppm", "ixx", "go", "java", "js", "jsx", "kt", "kts", "ktm", "less", "php", "scss", "swift", "ts", "tsx", "jsonc", "css", "coffee", "tbs", "bat", "cmd", "html", "vue", "md", "sql", "py", "rb", "rs", "rlib", "twig", "pl", "m", "mat", "bas", "cls", "r", "dpr", "pas"
- Supports Light and Dark Themes
- Snippets for the pre-defined tags and tag blocks
Parentheses,bracketsandCurly bracesin comments are also highlighed. (Can be individually disabled in the settings file)Backticks,"Double Quotes"and'Single Quotes'in comments are also highlighted. (Can be individually disabled in the settings file)
| Dark+ (Default) | Light+ (Default) | Emerald Sky (My Theme) |
|---|---|---|
![]() |
![]() |
![]() |
| Dark+ (Default) | Light+ (Default) | Emerald Sky (My Theme) |
|---|---|---|
![]() |
![]() |
![]() |
| Dark+ (Default) | Light+ (Default) | Emerald Sky (My Theme) |
|---|---|---|
![]() |
![]() |
![]() |
| Dark+ (Default) | Light+ (Default) | Emerald Sky (My Theme) |
|---|---|---|
![]() |
![]() |
![]() |
Note: This extension will search for tags in all files with a supported extension. The following two settings can be used to override this behavior.
Files To ExcludeAn array of filenames to exclude from Comment HighlighterFolders To ExcludeAn array of folder names to exclude from Comment Highlighter
All this extensions tag settings are stored in the file
tag-settings.jsonlocated in this extensions global storage folder. It uses its own file as it would be annoyingly too large for yoursettings.jsonfile. It also has its own JSON Schema making adding and editing items much easier. To edit this file run the commandComment Highlighter: Edit Tags Settings File. To reset this file to its default settings run the commandComment Highlighter: Restore Tag Settings File. Be aware that this will remove any changes you have made!
Read TAG-SETTINGS.md for a more detailed description of the tag-settings.json file and its usage
These commands are availiable from the command pallette: (Windows: CTRL+Shift+P or F1) (Mac: CMD+Shift+P)
-
Comment Highlighter: Edit Tags Settings FileOpenstag-settings.jsonFile for editing. -
Comment Highlighter: Restore Tag Settings FileRestorestag-settings.jsonfile to its default settings.- (Caution! This will remove all changes you have previously made!)
The tag browser panel displays a list of all project files with a supported extension that include any tag keywords. Selecting the file will display all the tag keywords within that file. Then selecting the displayed tags will open that file in the editor and jump to the location of the tag.
Example Screenshot...
You can override the default file colors in the settings.json file under the workbench.colorCustomizations key...
chTreeItem.filenameTextColor sets all filenames text color
chTreeItem.bugTextColor sets the BUG tags text color
chTreeItem.changedTextColor sets the CHANGED tags text color
chTreeItem.debugTextColor sets the DEBUG tags text color
chTreeItem.fixmeTextColor sets the FIXME tags text color
chTreeItem.ideaTextColor sets the IDEA tags text color
chTreeItem.noteTextColor sets the NOTE tags text color
chTreeItem.optimizeTextColor sets the OPTIMIZE tags text color
chTreeItem.researchTextColor sets the RESEARCH tags text color
chTreeItem.reviewTextColor sets the REVIEW tags text color
chTreeItem.tempTextColor sets the TEMP tags text color
chTreeItem.todoTextColor sets the TODO tags text color
chTreeItem.userTagTextColor sets all User Defined tags text color
Example Screenshot...
The Project Notes extension which has project and global file links in comments which are supported by this extension.
The Emerald Sky dark theme which I created with this extension in mind.
See the Release Notes for details on this released version or Changelog for a history of all changes.















