如何更改扩展区域的颜色? VS2008 中的标题?
我想知道是否有办法改变VS2008中扩展区域标题的颜色。即使使用第三方插件。
#region My Region Title //I want this text to be in a customized color
public void Foo() {
//Bla bla bla
}
#endregion
有谁知道该怎么做?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(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
您可以在“工具”-->“选项...”下的“字体和颜色”选项下更改 #region 和 #endregion 预处理器关键字,但我从未见过在哪里可以更改标记后放置的文本。
您可能想浏览 http://blogs.msdn.com/saraford/ 并查看她的博客,因为她是 Visual Studio 的 UI 定制女王。
如果你找到它,请发布它:)
编辑:我从微软网站找到了这个;
“您只能更改预处理器关键字。要获得更高级的格式,您必须寻找第三方插件。我使用 DevExpress 的 CodeRush (http://www.devexpress.com),它可以做你想做的事情,他们有一个免费的 Express 版本,但我不知道免费版本中是否有区域着色。 ”。
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."