c# - 是否有可能让 Visual Studio 或 Resharper 以不同的颜色突出显示枚举?

标签 c# visual-studio resharper

我认为如果用与类属性不同的颜色突出显示枚举属性,代码会更具可读性。

最佳答案

对于 VS2010/VS2013/VS2015/VS2017/VS2019:

  1. 工具->选项->环境->字体和颜色:
  2. 显示文本编辑器的设置
  3. 显示项目:用户类型(枚举)
  4. 更改项目前景

关于c# - 是否有可能让 Visual Studio 或 Resharper 以不同的颜色突出显示枚举?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10188289/

相关文章:

c# - 找不到对象 "dbo.Table",因为它不存在或您没有权限

c# - 如何修复显示 “The type or namespace name X does not exist in the namespace Y”的错误?

javascript - knockout : How to apply multiple partial view models to the same element

c# - 有没有办法在 Visual Studio 中自动生成 equals 和 hashcode 方法

c# - 如何防止解决方案窗口中的 Resharper 错误显示 CSS/javascript 错误?

c# - 锐化器 4.5 : How can I discard an interface and change all references to the only implementation?

phantomjs - Resharper Jasmine javascript 测试 : "Inconclusive test run" error

c# - 如何使用应用程序访问 token 使用 publish_stream 而不是 offline_access 发布到 Facebook 用户的 friend 的墙上

c# - 托管在 Windows 服务中的 WCF 中的 IoC 和每次调用的容器生命周期

visual-studio - 创建 mdb 文件以在 Unity 中调试托管 DLL