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
Save everything and restart Visual Studio!
Close Visual Studio. Delete the <ProjectName>.v12.suo file. Reopen solution.
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.
In my case, restart didn't work.
So I did the following weird steps :
And the intellisense worked again.
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!
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.