justcode

Coloring instance variables in Visual Studio

限于喜欢 提交于 2019-11-29 09:15:09
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 and age should be colored but test not. Of course, usages of variable highlighting is grat feature but this is something different. I want instance variables to be colored all and always. Many people use _underscores to distinguish instance variables but I prefer to use coloring. public class Kid { private string name; private int age; public Kid() { name = "N/A"; string test = "XYZ"; } } Reed Copsey This is not possible directly with Visual

Coloring instance variables in Visual Studio

点点圈 提交于 2019-11-27 23:14:58
问题 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 and age should be colored but test not. Of course, usages of variable highlighting is grat feature but this is something different. I want instance variables to be colored all and always. Many people use _underscores to distinguish instance variables but I prefer to use coloring. public class Kid { private string name; private int age;