Visual Studio 2012代码突出显示结构 [英] Visual Studio 2012 Code Highlighting for structs
问题描述
我现在有点疯了。我的公司从VS2008切换到VS2012,现在我找不到任何选项来启用代码高亮显示结构。
I'm getting a little bit crazy right now. My company switched from VS2008 to VS2012 and by now I couldn't find any option to enable code highlighting for structs.
在VS2008中像
public Color Foreground {get; set;}
关键字 Color
将被突出显示,因为它是一个众所周知和定义的结构。
the keyword Color
would be highlighted because it's a well known and defined struct.
在VS2012中,突出显示功能不再适用于结构。
In VS2012 the highlighting feature doesn't work for structs anymore.
还有人注意到了吗?有人有解决方案吗?我经历了所有的颜色选项和尝试一切,但我不能得到好的旧 struct
突出显示颜色。
Does anyone else also noticed? Has anyone a solution? I went through all the Color Options and tried everything but I can't get the good old struct
highlighting color back.
推荐答案
在VS2012中对我来说效果很好:
It works fine for me, in VS2012:
img src =https://i.stack.imgur.com/9T9e8.pngalt =enter image description here>
您要找什么是<
中的用户类型(值类型)
颜色
工具 - 选项 - >环境 - >字体和颜色
如果这没有帮助,你应该检查你没有外部插件可能正在改变颜色...
更新 - 根据您的评论 - 如果您使用的是生产力电动工具,您可能需要禁用<$ ccolor的颜色参数帮助选项c>工具 - >选项 - >生产力电动工具 - >彩色参数帮助 ...
If that doesn't help, you should check that you don't have an external addin that might be changing the colors...
Update - based on your comment - if you're using the Productivity Power Tools you might need to disable the Colorized Parameter Help Option from Tools -> Options -> Productivity Power Tools -> Colorized Parameter Help
...
另一个选项是尝试 修复 您安装的VS2012
Another option is to try to Repair your installation of VS2012
这篇关于Visual Studio 2012代码突出显示结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!