ASP.NET MVC 3 Razor Intellisense - asp.net-mvc

Downloaded and installed ASP.NET MVC 3 (final version) and still I do not have intellisense in Razor views? What is wrong?

Install the ReSharper 5.1.2 update and then ASP.NET MVC 3 Razor Intellisense will work again.
ReSharper 5.1.2 doesn’t interfere with Visual Studio IntelliSense in ASP.NET MVC 3 Razor syntax. Earlier ReSharper 5.x builds had certain issues with Razor IntelliSense that are addressed in 5.1.2. Specifically, ReSharper 5.1.2 doesn’t prevent Visual Studio from automatically providing its own IntelliSense in .cshtml and .vbhtml web pages anymore: both code completion and Parameter Info work as expected.
http://blogs.jetbrains.com/dotnet/2011/01/resharper-512-is-released/

If you have R# installed, change the settings to use VS Intellisense instead of R#'s. R# does not have that capability for Razor yet. If you still want to use it you could try hitting the space bar after the period

Are you up to date with service packs. Off the top of my head I think you need Visual Studio Service Pack 1 beta for it to work

Related

Adding Custom Refrence for ASP.Net MVC on Visual Studio Code

We are developing an ASP.Net MVC project and some of my co-workers are working on Mac OS. I have installed Visual Studio Code and ASP.Net Helper along with the C#. I have copied the whole project to Mac but the problem is it is not seeing my project refrence file, let's say MyProject.dll. When i add it on the Windows with generic VS, IntelliSense is completing automatically bringing the functions that i wrote.
All i need is adding a refrence and using IntelliSense for my functions on VisualStudio code. Is there anyway to achive that?
Visual Studio Code doesn't support ASP.NET MVC projects. You can load them and view files but you will not be able to use Intellisense, build or debug such projects. If you want your co-workers to use VS Code as the IDE under Mac consider migrating your project to ASP.NET Core.

Getting MVC 3 razor view intellisense to work with Visual Studio 2013

I am facing the same issue sited here. Basically, the MVC3 razor view (cshtml) intellisense does not work with VS 2013. The reason sited on that thread is that MVC3 is not supported in VS 2013. Now I have a third party library (dll) that I cannot upgrade to MVC4 or MVC5 without incurring additional cost. I am doubtful whether the MVC3 version of that library that I am currently using will correctly work with MVC4 if I upgrade my VS 2013 project to MVC4 for intellisense.
Coming back to my question, is there any way to get the VS 2013 razor view intellisense working for MVC3 . Other than intellisense, there is no issue and the project compiles and runs without any problems.
EDIT
As can be seen from the snapshot below, intellisense works for some statements like #Html.Label(..) but not for #Html.DisplayFor(..), Html.TextAreaFor(..) and others.
Add these two lines inside each view:
#inherits System.Web.Mvc.WebViewPage<dynamic>
#using System.Web.Mvc.Html
Instead of dynamic put your Model's type name.

Problems after Razor update in VS2012

After installing some updates in VS Package Manager (including Razor update), my Intellisense and code Highlighting is malfunctioning. Even the basic things like model, ViewBag, Html.BeginForm() are all being highlighted red; hovering over them shows either 'doesnt exist in current context' or 'so and so doesnt have definition for BeginForm'...Ironically the code compiles perfectly as before and runs fine...
What gives?
Razor 3 uses a new engine, which VS2012 doesn't have. You can add support by installing the new ASP.NET and Web Tools 2013.1 for Visual Studio 2012

Enable Razor for Views

How do I enable razor syntax (??) for my MVC project (New, not existing). I have visual studio 2010 Ultimate, and http://support.microsoft.com/kb/2385361 update. Is there something else I need to install to enable the latest MVC (3??) options?
You just need to install ASP.NET MVC 3. Easiest way is through the Web Platform Installer (WebPI).
http://www.asp.net/mvc/mvc3
This will give you a new ASP.NET MVC 3 Web Application template in File... New... Project... in VS2010. The wizard should default to Razor, though it's selectable in the View engine dropdown on the first (and only) page of the wizard.
You need to install MVC3 from Microsoft Web Platform Installer http://www.microsoft.com/web/downloads/platform.aspx
You need to install asp.net MVC version 3. Razor view engine is the default one then.

how to use MVC 3 intellisense for razor in Visual studio

How i can use Intellisense for Razor in Visual studio.
Simply download and install MVC3 RC1.
http://weblogs.asp.net/scottgu/archive/2010/11/09/announcing-the-asp-net-mvc-3-release-candidate.aspx
If your having problems getting it to work and you have the RC installed a long with ReSharper. You have to disable ReSharper's intellisense. Per this tweet.
If you were previously using MVC3 Beta and set a file extension association in Visual Studio between .cshtml/.vbhtml and the HTML editor (to get nice HTML colours), then you'll need to remove it before IntelliSense will work with MVC3 RC.
Not sure I udnerstand the question. Are you not seeing color highlighting and intellisense?
You have to get the MVC 3 Release Candidate that was released 9th November.
Download link:
http://go.microsoft.com/fwlink/?LinkID=191797
If you have the RC, then you may have to enable the intellisense by doing the following:
Tools > options > text editor > all languages and make sure intellisense is turned on.
It could be that you have installed a utility like Resharper that might have disabled it.
I hope this helps.

Resources