Is it possible to get Visual Studio or Resharper to highlight enum's with a different color?

岁酱吖の 提交于 2019-12-05 12:21:40

For VS2010 / VS2013 / VS2015 / VS2017:

  1. Tools->Options->Environment->Fonts and Colors:
  2. Show Settings For Text Editor
  3. Display Items: User Types (Enums)
  4. Change Item Foreground

You have to enable "Color identifiers" in ReSharper -> Options -> Code Inspection -> Settings.

Then you can define the forground/background colors for Enum identifiers in Tools -> Options -> Environment -> Fonts and Colors (select "ReSharper Enum Identifier" in the "Display items" list.

Note: this is for VS 2010 / ReSharper 6.1.

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