Visual Studio 2013 Razor intellisense not recognizing start of lambda expression
I have a slight annoyance with VS 2013 when you are working in ASP.NET MVC Razor views. When I type something like @Html.TextBoxFor(m => m.[PropertyName])
, as soon as I type the first one m, intellisense comes up with a dropdown with mbox
. Then when I press the spacebar, it pastes mbox
into my code. Is there anything I can do other than disabling intellisense so that I can enter code without having to decline the intellisense offer? If you type first @Html.TextBoxFor()
, then go back and fill in the expression, I get the desired behavior, but it's not more convenient.
Edit
I don't have anything imported directly in this view. In web.configs I have the following:
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
<add namespace="EPiServer.Shell.Web.Mvc.Html" />
<add namespace="EPiServer.Framework.Web.Mvc.Html" />
<add namespace="EPiServer.Web.Mvc.Html" />
<add namespace="LGMVCWeb.ViewModels"/>
<add namespace="LGMVCWeb.Models.Pages.OE"/>
<add namespace="LGMVCWeb.ViewModels.Pages.OE"/>
<add namespace="LGMVCWeb.ViewModels.Shared.OE"/>
source to share
No one has answered this question yet
Check out similar questions: