jryan
jryan

Reputation: 203

How can I reset/get back razor intellisense and syntax highlighting?

I had a problem with my Visual Studio 2010 install - managed to sort it by a repair, and reinstall my addon's etc., but now the intellisense and syntax highlighting has disappeared from my cshtml files - I've reinstalled the asp.net mvc 3 RTM and that hasn't fixed it...I've trying a devenv /ResetSettings, but no change.

Is there anything else I can do to try and bring back my lovely highlighting?!

Upvotes: 5

Views: 2481

Answers (3)

ju4nj3
ju4nj3

Reputation: 1

Just did this and it worked:

Uninstall:

  • ASP.NET MVC 3 - Visual Studio 2010 Tools Update
  • ASP.NET MVC 3 - Visual Studio 2010 Tools Update - ESN (Language pack, in my case)
  • ASP.NET MVC 2 - Visual Studio 2010 Tools Update
  • ASP.NET MVC 2 - Visual Studio 2010 Tools Update - ESN
  • ASP.NET Web Pages - Visual Sutdio 2010 Tools Update
  • ASP.NET Web Pages - Visual Sutdio 2010 Tools Update - ESN

Reinstall everything again. It worked without rebooting.

Upvotes: 0

jryan
jryan

Reputation: 203

Ok solved it - When uninstalling MVC 3 Visual Studio Tools, I didnt uninstall asp.net webpages visual studio tools, which MVC 3 depends on, once I uninstalled this also and then reinstalled the MVC 3 RTM, my syntax highlights etc came back! phew!

Upvotes: 6

ajma
ajma

Reputation: 12206

Try downloading "ASP.NET Web Pages with Razor Syntax" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=B7937C34-3B53-47B7-AE17-5A72FA700472

Upvotes: 0

Related Questions