Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 320
Jedidja Avatar asked Jun 10 '12 16:06

Jedidja


People also ask

What is SAP C user?

C-id is contract employee id, which will be used by the client company(SAP Labs) to make the contract employee enable all the access like system access and other sources and also for billing purpose.

How do I see all users in SAP?

You can get the complete list of users in Tcode SUIM->users->by user id.


3 Answers

Here is a simple solution. Go to the directory where devenv is (for 2012 RC), and type devenv.exe /setup. It will fix your problem.

devenv.exe is usually in something like C:\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, ...

like image 95
GregRos Avatar answered Oct 12 '22 01:10

GregRos


My problem was limited to having the "DateTime" type not showing up in light blue like other class names. I fixed it by simply switching back-and-forth between VS Themes. Discovered by accident. Much quicker than reset settings or repair install...

VS menu Tools -> Change Color Theme

like image 29
Marc-André Avatar answered Oct 11 '22 23:10

Marc-André


This is what worked for me:

1 - delete all in C:\Users\userNAme\AppData\Roaming\Microsoft\VisualStudio\11.0
2 - open vs console as administrator, and run:
      devenv.exe /setup
      devenv.exe /ResetSettings

This will reset all your environment settings.

like image 27
Leonardo Herrero Avatar answered Oct 12 '22 00:10

Leonardo Herrero