Is it possible to get Visual Studio or Resharper to highlight an enumeration with a different color?

I think the code will be more readable if it selects the enums properties with a different color for the class properties.

+5
source share
2 answers

For VS2010 / VS2013 / VS2015:

  • Tools-> Options-> Environment-> Fonts and colors:
  • Show settings for text editor
  • Display Elements: User Types (Enumerations)
  • Change foreground object
+13
source

You need to enable "Color Identifiers" in ReSharper -> Options -> Code Inspection -> Settings .

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

Note: this is for VS 2010 / ReSharper 6.1.

+3
source

Source: https://habr.com/ru/post/959386/


All Articles