Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 Code Highlighting for structs

I'm getting a little bit crazy right now. My company switched from VS2008 to VS2012 and by now I couldn't find any option to enable code highlighting for structs.

In VS2008 something like

public Color Foreground {get;set;}

the keyword Color would be highlighted because it's a well known and defined struct.

In VS2012 the highlighting feature doesn't work for structs anymore.

Does anyone else also noticed? Has anyone a solution? I went through all the Color Options and tried everything but I can't get the good old struct highlighting color back.

like image 759
LazyGeek Avatar asked Jan 10 '13 08:01

LazyGeek


People also ask

How do I change syntax highlighting in VS code?

To change the text and syntax colors in visual studio code follow the steps given below: Open VS Code editor to change the syntax colors. Go to Settings, which is on the bottom left corner of the VS Code window. In the search field type JSON, and click on the 'Edit in settings.

How do I highlight a word in Visual Studio code?

On windows hold down Ctrl + Shift and on mac Command + Shift, then press the key P.

What does orange mean in VS code?

Orange: The line has been changed, saved, and the change undone.


2 Answers

It works fine for me, in VS2012:

enter image description here

What you're looking for is the User Types (Value types) color in
Tools -> Options -> Environment -> Fonts and Colors

enter image description here

If that doesn't help, you should check that you don't have an external addin that might be changing the colors...
Update - based on your comment - if you're using the Productivity Power Tools you might need to disable the Colorized Parameter Help Option from Tools -> Options -> Productivity Power Tools -> Colorized Parameter Help...

Another option is to try to Repair your installation of VS2012

like image 111
Blachshma Avatar answered Sep 19 '22 06:09

Blachshma


I have also run into this problem and I have found the culprit to be the Productivity Power Tools. There is a workaround to get the syntax highlighting for structs to reappear. You have to turn off Colorized Parameter Help in the Productivity Power Tools options and restart Visual Studio.

This can be found at Tools > Options > Productivity Power Tools > Colorized Parameter Help

PPT Colorized Parameter Help

Also see this bug report for more information.

like image 38
Paccc Avatar answered Sep 22 '22 06:09

Paccc