I would like to change the yellow background color of the Razor tags in VS12.
Here's how to change it to a different color theme. On the menu bar, select Tools > Options. In the options list, select Environment > General. In the Color theme list, choose between the default Dark theme, the Blue theme, the Blue (Extra Contrast) theme, and the Light theme.
Here's how to change the color theme of the IDE frame and the tool windows in Visual Studio. On the menu bar, choose Tools > Options. In the options list, choose Environment > General. In the Color theme list, choose either the default Dark theme, the Light theme, the Blue theme, or the Blue (Extra Contrast) theme.
For your requirement, you can change the default color of entire Visual Studio's user interface with the following steps: Tools > Option > Environment > General > Color Theme .
Optional: Install the color theme editor: http://visualstudiogallery.msdn.microsoft.com/366ad100-0003-4c9a-81a8-337d4e7ace05
In the theme editor or Tools > Options > Environment > Fonts and Colors
Search for: 'HTML Server-Side Script' to edit the foreground & background of @
and other tags.
Search for: 'Razor Code' to edit the background of the Razor code.
Besides the way that @seanjacob mentioned, there's a built-in way if you'd rather not install an extension just to change Razor colors. This approach is shown in this answer.
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