Visual Studio 2013 Razor intellisense not recognizing the start of a lambda expression

411 views Asked by At

I'm having a minor annoyance with VS 2013 when working in ASP.NET MVC Razor views. When typing something like @Html.TextBoxFor(m => m.[PropertyName]), as soon as I type the first m, intellisense pops up a drop down with mbox selected. Then when I press the space key it inserts mbox into my code. Is there anything I can do, besides turning off intellisense, so that I can type my code without having to dismiss the intellisense suggesetion? If I type @Html.TextBoxFor() first, and then go back and fill in the expression, I get the desired behavior, but that is no more convenient.

Edit

I don't have anything imported directly in this view. In the 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"/>
0

There are 0 answers