I am using Visual Studio 2008, and Resharper 5.0:
There are certain keywords such as note
, bug
, and todo
that are highlighted within comments that I would like to disable or at least alter the highlight color and/or specify keywords.
However I can't find any settings in Visual Studio's Fonts and Colors options nor in Resharper's options to change this behavior.
Can anyone point out how and where this can be changed?
See this related question: Visual Studio keyword highlighting in comments
Keyword highlighting in Marked allows you to catch common phrases that you might want to avoid, find alternate terms for or just highlight for general purposes. The list of keywords used to match each category can be edited in the Marked 2 Preferences, Proofing pane.
They shortcut to comment out a block of code is "Ctrl+K, C" or "Ctrl+E, C" (as a reminder, I'm using the default C# settings in Visual Studio). To comment out a selection, we first highlight the code: And then just press "Ctrl+K, C": That's it.
After some more searching, I found that the options belong to Resharper, and are not intuitively placed within the options.
The settings are in the "To-do Items" under the Tools section, near the last of the list of options. There, "Patterns" and "Filters" determine what is found (Patterns) and how they are listed when you view To-do Items (Filters).
To disable a particular highlight, remove it from the Patterns. To add a new highlight or change an existing one, create or edit one.
This is a feature of Resharper that was quite difficult to find because I kept looking for "syntax highlighting" or "keyword highlighting" rather than "To-do items."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With