Somehow part of my syntax highlighting for C# code has disappeared in the VS 2012 IDE. Uninstalling, rebooting, and reinstalling does nothing, nor does resetting the colors in the options dialog.
Here are some examples of items which all appear in default (black) that normally have color which don’t:
- Attributes
- System classes
- My own classes
And here are some keywords that still have color:
- using
- public
- void
- var
- for
Has anyone else experienced this and managed to fix it?
Here is a simple solution. Go to the directory where
devenvis (for 2012 RC), and typedevenv.exe /setup. It will fix your problem.devenv.exeis usually in something likeC:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE.Edit: It has been suggested that you do this from the Visual Studio command prompt (Start>Microsoft Visual Studio>Tools>Visual Studio Command Prompt), and/or make sure your command prompt has administrator permissions.
Note for others: This has a very good chance of working for many other versions of Visual Studio, including 2008, 2010, 11 beta, …