Blazor code syntax background color highlighting visual studio

Viewed 1370

Highligt image example

I have been trying to find the setting in visual studio where I can remove the obnoxious background-color highlighting in a Blazor components' @code {} section. What setting do I have to kill to remove this behaviour in Visual Studio 2019?

1 Answers

Go to Tools > Options > Environment > Fonts and Colors. Scroll for HTML Razor Code Background, select it and as an Item background choose Custom. Select rgb(30, 30, 30) to match your editor background and make it invisible.

Related