I just started to convert few of their old ASP (?? yes) pages to Razor view engine with MVC 3.
Soon I ran into issues. I donâ€™t have Intellisenseâ€¦.what !!! Nooooooooooooooooooo. I donâ€™t want to go back to VB 4 days. After some research I found out the issue is not on the MVC 3 or the Razor view engine.
The problem lies in how you have your development machine setup and If you have Resharper.
Resharper donâ€™t acknowledge the .cshtml extension and doesnâ€™t provide intellisense support for you at the IDE. What a Jerk
So if you are setup to use Resharper intellisense, you will run into this issue with Razor view engine.
You can use 2 quick ways to solve this.
1. inside the .cshtml file just use ctrl + space to manually fire the intellisense or
2. go to Resharper â€“> Options â€“> Select intellisense â€“> General
Change the option to use Visual studio intellisense.
Well there you go. This should fix most of my fellow developers intellisense issues.