7

I've updated my Visual Studio to 2013 Professional, but in doing so I seem to have lost a lot of the code formatting. I've gone into Tools - Options - Environment - Fonts and Colors and reset the defaults. I've even gone Tools - Options - Environment - Import and Export Settings and browsed to my 2012 settings folder, but again I am missing out on a lot of code formatting.

Keywords are highlighted, but any classes etc are not. Other people in my team have upgraded without any problems (I just used the default download installer)

Any help is much appreciated as currently I'm basically just using a glorified version of notepad to code with this below image

enter image description here

Ramesh Rajendran
  • 37,412
  • 45
  • 153
  • 234
Wobble
  • 89
  • 1
  • 10
  • Have you tried to compile the code? it could be visual studio doesn't recognize your classes. – CKII Oct 23 '13 at 09:14
  • 1
    possible duplicate of [Plain C# Editor in Visual Studio 2012 (No intellisense, no indentation, no code highlighting)](http://stackoverflow.com/questions/11988077/plain-c-sharp-editor-in-visual-studio-2012-no-intellisense-no-indentation-no) – Ramesh Rajendran Oct 23 '13 at 09:18
  • Code compiles fine - I've tried this across multiple different solutions just to make sure and all build ok – Wobble Oct 23 '13 at 09:35

2 Answers2

4

If you're using Productive Power Tools, go to => Tools -> Options -> Productive Power Tools. In main menu, TURN OFF the option: Colorized Parameter Help.

Otherwise Go to tools in visual studio > Option>TextEditor>C#>See the option for anything you missed . (Am not sure , It's pretty,But it's my small idea only)

See this same discussions :Plain C# Editor in Visual Studio 2012 (No intellisense, no indentation, no code highlighting)

Community
  • 1
  • 1
Ramesh Rajendran
  • 37,412
  • 45
  • 153
  • 234
  • I'm not currently using these tools, but thanks for the suggestion – Wobble Oct 23 '13 at 09:36
  • 3
    Thanks for the link - I eventually managed to get this problem fixed using this line: Try running devenv /Resetuserdata in Command Prompt to reset all of your VS environment and customization settings. – Wobble Oct 23 '13 at 12:58
  • 1
    @Wobble Having the same problem, but cannot seem to locate the command prompt. Where? – Nicklas Pouey-Winger Nov 22 '13 at 13:24
0

Once in a while (each day) I have the same problem. Especially after changing project branch in git.

The simplest way to fix so far: file, close solution and then file, recent projects and solutions and reload your solution.

JF Gagnon
  • 220
  • 3
  • 8