Search code examples
htmlasp.net-mvcvisual-studiokendo-ui

Why wont my VS html editor recognise my Kendo code and auto-complete it?


My Visual Studio is having following issues:

  1. Code autocompletion has stopped working.
  2. Code does not highlight with different colors as it used to. It just appears to be plain white text.

Ive Uninstalled and reinstalled, ive tried repairing the installation nothing fixes it.

My VS version is 2019 ver 16.11.37

The image below shows how it looks at present.

My view of the html

How can I make it work like it used to? Any help is appreciated.


Solution

  • My first suggestion is to use the 2022 version, but if for some reason you prefer to use 2019, and if this issue only occurs in some pages and not in the whole project, maybe sometimes the automatic format in some versions of Visual Studio does not work properly due to syntax errors in ASP .NET Razor codes. In this case, if you cannot find the typographical errors by reviewing the codes, I suggest you add a new ASP .NET Razor page. Copy the codes element by element from the problematic page to the new page. Pay attention to the behavior of Visual Studio in automatic code format. When the format is not done correctly, there is probably a problem in that part of your code and you should check more closely. If that part is extra and it was wrongly placed in the previous codes, delete it. Also, if the format of the whole page is damaged by copying the new element, press Ctrl+Z once to undo it.