Coloring instance variables in Visual Studio

前端 未结 3 1367
野趣味
野趣味 2020-12-17 10:33

Is it possible to color instance (and static) variables in C# code in Visual Studio 2010, perhaps using a lightweight extension?

In following example name

3条回答
  •  青春惊慌失措
    2020-12-17 10:38

    This will soon be possible, though not for Visual Studio 2010 in particular. There is an open source Visual Studio extension called Roslyn Colorizer which makes use of the new .NET Compiler Platform ("Roslyn") in Visual Studio 2015 Preview to style the appearance of instance variables.

    enter image description here

提交回复
热议问题