I'm trying to prevent Visual Studio 2015 from colorizing code blocks when at a breakpoint within a lambda expression.
(Screen shot below).
It's very distracting for me, and I would like to prevent this behavior, but can't figure out how to either A) prevent it altogether, or B) change the background color that it's using to black so that the effect is invisible.
I'd greatly appreciate any insight.
To reproduce it, just enter this code, set a breakpoint at the "for" loop, and run it. When the breakpoint is hit, the entire Lambda expression will colorize as shown below (exact colors dependent on your color scheme, presumably).
public delegate void funcType();
static void Main(string[] args)
{
((funcType)(() =>
{
for (int i=0; i< 10; i++) // <<== Set Breakpoint Here, and run to it
{
Console.WriteLine("Test line to show colorization.");
}
}))();
}
Per Hans Passant's question, here are all the Extensions that are installed in Studio 2015.
It's important to note that this is NOT an EDITOR issue. This happens at runtime only, when the DEBUGGER stops at a breakpoint inside a Lambda expression.
For those of you still searching in VS 2019 etc. it's the "Active statement" option in fonts and colors in the tools/Options menu.
To change the background color of the current line, when a normal breakpoint is hit in debugging, you need to alter the value of Item Background
under Current Statement
.
To do this from the main menu go:
Tools
-> Options
-> Environment
-> Fonts and Colors
and then set the value to black.
I confirmed this by setting a breakpoint in a lambda and setting the property to lime green. e.g.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With