Visual studio change color of temp variable in Lambda

Advertisements

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");

>Solution :

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.

Leave a ReplyCancel reply