Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Visual Studio 2012 Razor colors

I would like to change the yellow background color of the Razor tags in VS12.

like image 927
seanjacob Avatar asked Mar 18 '13 11:03

seanjacob


People also ask

How do I change the background color in Visual Studio 2012?

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.

How do I change colors in Visual Studio?

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.

How do I change BackColor in Visual Studio?

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 .


2 Answers

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.

like image 178
seanjacob Avatar answered Sep 17 '22 15:09

seanjacob


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.

like image 40
Jason Frank Avatar answered Sep 19 '22 15:09

Jason Frank