Search code examples
visual-studiorazorvisual-studio-2017

Visual studio 2017 cshtml syntax highlighting not working


I have been using VS 2015 for quite some time and just moved to 2017 recently. My cshtml text is all one color (black) and I have been trying to figure out why they are not highlighting like my other file types. Any ideas? This is pretty frustrating as I have been through different settings and many posts looking for an answer. I must be missing something.


Solution

  • The repair tip actually worked. I was not aware that you could repair your instance... Thank you for the help!

    To repair, go to "Programs and Features", select "Microsoft Visual Studion 2017" and choose "Change". The Repair option is shown here:

    enter image description here