Home > Mobile >  Visual studio change color of temp variable in Lambda
Visual studio change color of temp variable in Lambda

Time:11-05

With my current color scheme, the temp variables in C# Lambda expressions are difficult to look at. If possible, I need to change the color.

In this example, I need to target the color of x:

var name = names.Where(x => x == "John");

CodePudding user response:

in Visual Studio menu Tools > Options, then expand Environment / Fonts and Colors. In the list go to User Members - xy or User Types - xy to change all the colors. You are looking for User Members - Parameters.

See image and doc here.

  • Related