Wednesday, February 27, 2008

Howto: Change the color of #region and #endregion in visual studio

In Visual Studio, by default #region and #endregion are the same color as accessibility modifiers. In my opinion that gets a little confusing -- but how exactly do you go about changing their color then?

Turns out they are registered as "Preprocessor Keyword" (In Tools->Options->Environment->Fonts and Colors)

now, instead of this:












I get this:












Now if only I could find a way to change the text after the #region tag too...

0 comments: