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

前端 未结 19 2236
无人及你
无人及你 2020-11-27 12:23

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

相关标签:
19条回答
  • 2020-11-27 12:43

    exit devenv

    go to below path hkey_current_user\software\microsoft\visualstudio!

    remove 9.0 , 10.0 , 10.0_config (i mean to say all other folders except 11.0 and 11.0_config)

    Now start devenv and see the magical colors get back normal

    0 讨论(0)
  • 2020-11-27 12:46

    If the windows desktop is configured with a high contrast theme the syntax coloring seems to disappear completely from Visual Studio. If this is the case, select a normal windows theme and set a solid background color (if you don't want a background pictures) to restore syntax coloring in VS.

    0 讨论(0)
  • 2020-11-27 12:47

    If you still have this issue try ResetSettings (worked for me)

    NOTE: this will reset the Visual Studio 2012 settings :)

    1) close vs.

    2)open cmd (as administrator).

    3) go to devnev.exe folder (something like "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE" ).

    4) type "devnev.exe /ResetSettings"

    5) open vs and look at the beautiful colors

    0 讨论(0)
  • 2020-11-27 12:49

    Found the source of the problem: If you have the "Productivity Power Tools 2012" installed,

    you should go to Tools -> Options -> Productivity Power Tools and turn off the "Colorized Parameter Help" option.

    This fixed the syntax highlight problem.

    0 讨论(0)
  • 2020-11-27 12:49

    If you've installed the preview of Roslyn, unintstall it. This worked for me.

    0 讨论(0)
  • For me "Productivity Power Tools 2012" was the cause. Nothing suggested here helped. After removing the Power Tools the colors came back.

    0 讨论(0)
提交回复
热议问题