Can I remove the “highlighting” in a razor file in Visual Studio?

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

Leave a Comment