Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blazor code syntax background color highlighting visual studio

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?

like image 239
IncrediblePony Avatar asked Jul 10 '20 08:07

IncrediblePony


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.

like image 147
Raduen abdul hamid Avatar answered Oct 24 '22 09:10

Raduen abdul hamid