Visual Studio 2015 Broken Razor Intellisense

后端 未结 17 1135
陌清茗
陌清茗 2020-11-28 02:04

After installing and then repairing my VS2015 instance I still cannot get intellisense (server side) to work in my MVC views. I get alerted by message promp

相关标签:
17条回答
  • 2020-11-28 02:32

    FYI: My VS 2015 PRO installation has full install with all 3-rd parties.

    I tried all possible solution that here in article, it didn't help me. What Craig Goldensoph wrote helped me partially to find solution for me.

    So first I did: Uncheck all checkboxes for Text Editor-> All Languages->General Statement completion:

    After Click OK- Reopen Option Dialog again: And check all for the same section:

    and apply settings again. You have to Restart your Visual studio. After restart it will take a time to load , but after that it worked for me.

    0 讨论(0)
  • 2020-11-28 02:34

    Sometimes, the VS IDE does not show IntelliSense at all.

    I just close the solution, close VS, then reopen it, and the problem is solved.

    0 讨论(0)
  • 2020-11-28 02:36

    I was only able to fix this by updating the webpages version, which I mentioned in another similar question:

    Razor intellisense not working in VS 2015

    0 讨论(0)
  • 2020-11-28 02:38

    I've posted this answer on another SO question, just because I want to prevent people wasting the time I've just wasted. My problem was that I'd added files to a project, but not included them. So I chosen to show all files:

    then chose to include folders:

    The problem only shows up when you open an MVC website as a project, and not when you open it as a website directly.

    0 讨论(0)
  • 2020-11-28 02:39

    If none of the other options work, there is a workaround. After entering the '.' operator, press the "Ctrl + Space" keys which should force the IntelliSense dialog to appear.

    I was having this issue when working with .cshtml MVC razor files.

    0 讨论(0)
提交回复
热议问题