Aidan
Aidan

Reputation: 4901

visual studio font style by text value

I have a lot of logging statements in my code. While these make for good debug information, they make the code harder to read. Since they all start with

CommonLogger.LogMessage(...)

is there any way that Visual Studio (or Resharper) can automatically display these in a light grey font so that the eye passes over them when I'm trying to read the code?

Upvotes: 1

Views: 191

Answers (1)

wal
wal

Reputation: 17739

Resharper can't do this.

If you are still keen to get this feature you may want to write your own Visual Studio Extension. Consider the extension ItalicComments written by Noah Richards (who contributes on Stack Overflow)

This extension not only provides comments in italics but also "XML doc comment tags are made slightly smaller and partially transparent, so they fade into the background a bit more."

Download his source and check out the Fade method in ViewCreationListener

Note, to open his project you need the Visual Studio SDK installed

Upvotes: 1

Related Questions