Vignesh.N
Vignesh.N

Reputation: 2666

Class names not coloured in Visual Studio 2012

I am evaluating Visual Studio 2012 and am having some problems with the color schema.
Sure enough I was able to overcome the initial discomfort by setting my color for the text editor.
One thing I have not been able to set corrent are the color for the class names. Say you have a line like below.

Class name = new Class();

the entire line is in the same color, expect the new keyword.
I want the word 'Class' to be in a different color like in earlier versions of Visual Studio.
I am not able to set the color for this from the Option.
I have tried chaning color for all fields like plain text, literals, identifier, etc under
Tool -> Option -> Environment -> Font & Colors but still I am not able to fix this. I have also applied custome themes, those are also not helping.
I wouldn't want to install a productivity power tool for such basic preference right ??

Edit:
I'm on Windows 7 x64 and Visual Studio Professional 2012, Version 11.0.50727.1 RTMREL

Upvotes: 14

Views: 33308

Answers (5)

Om Saini
Om Saini

Reputation: 91

enter image description here

go to the tools >Option click on enviroment navigation and click on import and export setting and copy the url and open directory from the url and delete all font and color file .which you got setting folder

Upvotes: 2

mlam13
mlam13

Reputation: 227

The solution I found is a combination of the suggestions found in a mish mash of related threads:

  1. Close Visual Studio and open the VS command prompt as an administrator. Navigate to the devenv.exe file (in Express versions it is titled something along the lines of *express.exe) usually located in C://Program Files (x86)/Microsoft Visual Studio 11.0/Common7/IDE.

  2. Type devenv.exe /setup

  3. Reopen Visual Studio. If everything is all colored now, great! If not, close the tabs and reopen them.

Performing all of step 3 is what has got my coloring to come back to normal.

Here is where I got the suggestions:

Visual Studio 2012 - Intellisense sometimes disappearing / broken

How can I get user type C# syntax highlighting working again in VS 2012 RC?

Upvotes: 15

Fabrice
Fabrice

Reputation: 3100

The workaround provided by Donatas on Microsoft Connect works without having to turn off any option of Productivity Power Tools:

There is a workaround without turning off "Colorized Parameter Help". Go to Tools > Options > Environment > Fonts and Colors in Display items select "User Types (Value types)" click Custom next to Item foreground color and in the color picker change Red, Green or Blue by 1, i.e. to make a custom color which basically looks the same. OK on all the dialogs and problem solved.

Upvotes: 1

Marcos
Marcos

Reputation: 101

If you're using Productive Power Tools, go to => Tools -> Options -> Productive Power Tools. In main menu, TURN OFF the option: Colorized Parameter Help. I solved my problem, I'm on Windows 8 Pro, Visual Studio 2012 Ultimate.

Upvotes: 10

G_P
G_P

Reputation: 2168

You're on the right track. Under Tools -> Options -> Environment -> Fonts and Colors, you want to change "User Types", first making sure at the top of the dialog that you are viewing the settings for the "Text Editor"

Although, by default with my install of Visual Studio 2012 these were already set, so you may want to try the "Use Defaults" button, unless you've made other changes that you want to keep.

Upvotes: 3

Related Questions