gpt4 book ai didi

colors - 结构的 Visual Studio 2012 代码突出显示

转载 作者:行者123 更新时间:2023-12-03 10:22:00 25 4
gpt4 key购买 nike

我现在有点疯狂。我的公司从 VS2008 切换到 VS2012,现在我找不到任何选项来为结构启用代码突出显示。

在 VS2008 中类似
public Color Foreground {get;set;}
关键字 Color将突出显示,因为它是一个众所周知的定义结构。

在 VS2012 中,突出显示功能不再适用于结构。

有没有其他人也注意到了?有人有解决方案吗?我浏览了所有颜色选项并尝试了所有方法,但我无法得到旧的 struct突出颜色回来。

最佳答案

在 VS2012 中,它对我来说很好用:

enter image description here

您正在寻找的是 User Types (Value types)颜色Tools -> Options -> Environment -> Fonts and Colors
enter image description here

如果这没有帮助,您应该检查您是否没有可能改变颜色的外部插件......
更新 - 根据您的评论 - 如果您使用的是生产力电动工具,您可能需要从 Tools -> Options -> Productivity Power Tools -> Colorized Parameter Help 禁用彩色参数帮助选项。 ...

另一种选择是尝试 Repair 你安装的VS2012

关于colors - 结构的 Visual Studio 2012 代码突出显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14253879/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com