Search code examples
umbraco

Umbraco 9 instellisense does not work inside cshtml


I have freshly installed vs 2022 and created Umbraco 9.5.1 project. When I go to generated view, for example Views/test.cshtml and try to see the members of Model, I get nothing:

I tried setting the following option:

"Umbraco": {
    "CMS": {
      "ModelsBuilder": {
        "ModelsMode": "SourceCodeManual",
        "ModelsDirectory": "~/umbraco/models"
      },

But it started giving me the following error:

How can I enable intellisense in the views?


Solution

  • Make sure to include all the generated files in you project/solution, as well as the view files. That should do it?