Rafael Romão
Rafael Romão

Reputation: 1798

How to change the color of expanded regions' titles in VS2008?

I would like to know if is there a way to change the color of expanded regions' titles in VS2008. Even by using a third part plug-in.


#region My Region Title //I want this text to be in a customized color
public void Foo() {
    //Bla bla bla
}
#endregion

Does anyone know how to do it?

Upvotes: 2

Views: 1634

Answers (2)

TikTak
TikTak

Reputation: 39

In Tools>Options>Environment>"Fonts and Colors" change the "Preprocessor Keyword" item to change the region text color

In Tools>Options>Environment>"Fonts and Colors" change the "Collapsible Text" item to change the text after #region statement color

Upvotes: 3

Christopher Klein
Christopher Klein

Reputation: 2793

You can change the #region and #endregion preprocessor keyword under the 'Font and Colors' option under Tools-->Options... but I've never seen where you can change the text that you put after the tag.

You might want to poke around http://blogs.msdn.com/saraford/ and check out her blog since she is the queen of UI customization for visual studio.

post it if you find it :)

EDIT: I found this from a Microsoft website; "You can only change the preprocessor keywords. To get more advanced formatting you're going to have to look for third-party addons. I use CodeRush from DevExpress (http://www.devexpress.com) and it can do what you want. They have a free Express version available but I don't know if the region coloring is in the free version."

Upvotes: 2

Related Questions