Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to see what type of item Visual Studio is formatting?

I'm using VS 2013 and have some Razor code that has a weird background colour:

enter image description here

I want to get rid of the gray background to match the black background so it doesn't stand out so much, but have no idea which display item this is when I go to Tools->Options->Fonts and Colors. There are hundreds of settings in there, and the few that I thought represented the code (like keywords, etc) did not change the background.

Is there a quick way to determine what type of display items these are? I tried right clicking to no avail.

Any help would be appreciated!

EDIT: Ok, so I found the setting, it was Resharper error highlighting, so I have it fixed, but I'm still wondering if there's a good (easy) way to find the setting versus 15 minutes of trial and error.

like image 701
Mark Kadlec Avatar asked Nov 11 '22 12:11

Mark Kadlec


1 Answers

It's the setting in there called "Razor code":

Razor code color setting

Setting that sets the background color. For example, Lime:

Lime Razor

You can click "Custom.." and choose a more appropriate color that is closer to your editor background.

like image 64
Simon Whitehead Avatar answered Nov 15 '22 05:11

Simon Whitehead