3

I recently installed Visual Studio on a laptop and the syntax highlight fails to change Classes colors.

I tried exporting and importing the full, complete set of settings and it is still looking like that.

EDIT

I tried those websites with schemes and decided to try one, the Humane scheme, and this is how the sample code looks in my laptop after installing those settings:

enter image description here

However, this is how it is supposed to look:

enter image description here

Note the lack of highlight in class names.

What could it be causing this? I'm starting to think that's another setting at another place which causes this.

Craig Stevensson
  • 1,336
  • 4
  • 21
  • 43

2 Answers2

11

Finally, it worked by resetting user data, running this from the Visual Studio Command Prompt

devenv /Resetuserdata 

Found the hint here: https://stackoverflow.com/a/11988265/1213246

Community
  • 1
  • 1
Craig Stevensson
  • 1,336
  • 4
  • 21
  • 43
  • 2
    This worked, but it is a pretty radical step. I lost all my extensions, syntax highlighting, etc. – stricq Sep 08 '14 at 17:31
4

Changin syntax highlight could be done through the menu Tools - Options - Environment - Font & Colors. It's a try and test approach that is not much improved from earlier versions of Visual Studio.

Fortunately, today there are entire sites with themes that simply need to be choosen and installed I suggest you to visit http://studiostyl.es/ where you can find thousands themes or, for more generic go to http://www.hanselman.com/blog/VisualStudioProgrammerThemesGallery.aspx

Steve
  • 213,761
  • 22
  • 232
  • 286
  • Yes, I know I can change it that way, but why they were setup different to start with? I'm using same installation disk, same settings. – Craig Stevensson Jan 24 '13 at 17:11
  • Do you have any add-ins that mess with colors? – Steve Jan 24 '13 at 17:12
  • The only 3rd party tool I use is DevExpress, but it is also installed in my PC, in which the other settings are ok. Besides that I checked your link and I see those style schemes are simply .settings files, but I have also tried export and import, choosing the full settings unless there is an special place to import/export syntax highlight. – Craig Stevensson Jan 24 '13 at 17:17
  • DevExpress has a bunch of Painting features, I will try to disable DevExpress, just to check if something changes, in that case I will try to find if something is different in the Options -> Editor -> Painting settings – Steve Jan 24 '13 at 18:15
  • This happened to me, bizarrely after removing ncrunch. I visited the `Fonts and Colors` option, clicked `Use Defaults` and they magically all came back again. FYI, I got "Unknown Error" when running the 'resetuserdata' answer above. – Phil Cooper Jan 29 '14 at 09:30