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

一个人想着一个人 提交于 2019-12-08 02:04:23

问题


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?


回答1:


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."




回答2:


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



来源:https://stackoverflow.com/questions/1560528/how-to-change-the-color-of-expanded-regions-titles-in-vs2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!