Visual Studio 2013 IntelliSense stops working for ASP.NET MVC5 Controllers

后端 未结 26 1783
闹比i
闹比i 2020-11-29 18:42

I am facing a weird problem in my Visual Studio 2013 ASP.NET MVC 5 project. All of a sudden, the IntelliSense in the Controller classes of the MVC 5 project are not working

相关标签:
26条回答
  • 2020-11-29 19:09

    Save everything and restart Visual Studio!

    0 讨论(0)
  • 2020-11-29 19:10

    Close Visual Studio. Delete the <ProjectName>.v12.suo file. Reopen solution.

    0 讨论(0)
  • 2020-11-29 19:11

    I have found that if the build fails then the Intellisense seems to break. After fixing my build errors and rebuilding the project the Intellisense will work after reloading the particular Razor file.

    0 讨论(0)
  • 2020-11-29 19:12

    In my case, restart didn't work.

    So I did the following weird steps :

    1. Closed the solution
    2. Opened another solution
    3. Verified that intellisense worked in this other solution.
    4. Closed the other solution
    5. Finally, reopened the first solution.

    And the intellisense worked again.

    0 讨论(0)
  • 2020-11-29 19:12

    I tried lots of things which didn't work. In the end, I cut code to clipboard, recreated the controller and pasted code in. Problem solved!

    0 讨论(0)
  • 2020-11-29 19:12
    Tools->Options->Text Editor->C# (or All Languages)->General
    

    check the check box for enable Auto List Members and Parameter Information in right hand side pane.

    If its not selected,select it.

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