Visual Studio 2015 Not Syntax Highlighting Razor Nor Intellisense

Visual Studio 2015 not syntax highlighting razor nor Intellisense

I've found in this answer another way to fix it without the devenv.exe /ResetUserData

Just delete the contents of this directory with Visual Studio closed:
%LocalAppData%\Microsoft\VisualStudio\<visual_studio_version_number>\ComponentModelCache

To find the version number of the Visual Studio edition your are running please refer this list. Note that only the major number is important, the minor version can and will probably differ. In my case I had Visual Studio 2017 Enterprise installed so I looked for 15.xx and found 15.0_9a1c4a06 inside the AppData folder.

Visual Studio 2015 Broken Razor Intellisense

I solved this problem by resetting the user data

devenv.exe /resetuserdata

and remove the ".vs" folder in my project.


WARNING: this will reset all your user settings. Essentially, it is like resetting to factory defaults. You will lose any custom keyboard shortcuts, extensions you've installed etc.

Visual Studio 2015 razor editor not working

After some search i found the solution. the issue was with the Microsoft web development tool it was not installed correctly( I still don't know why :) ) in my system when i install visual studio 2015. When i tried to modify the visual studio it didn't let me install web development tool (Update button was disabled). So i tried an alternative solution install asp.net core https://www.microsoft.com/net/core#windows because i know it comes with web development tool so i just tried installing and it fixed my issue.

Syntax highlighting and intellisense not working .net core vs 2015

After hours of trying different packages and searching forums and issue threads, I gave this package a shot Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final and this seemed to do the trick. All the syntax highlighting seemed to take effect once I referenced this package.

Is it normal that Razor doesn't highlighting syntax of C# when also is JavaScript?

ResetUserData didn't help.

I found the different solution and it works for me:

Opening the same project as a "Web Site" (File > Open > Web Site) fixes the issue.

Visual studio intellisense / syntax highlighting not working for remote files

Ok, so ive now solved this. VC++ runtime files needed installing locally for one of the assemblys on the server.



Related Topics



Leave a reply



Submit