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"/>

      

+3
lambda visual-studio-2013 asp.net-mvc razor intellisense


source to share


No one has answered this question yet

Check out similar questions:

1391
What is a lambda expression in C ++ 11?
566
How to disable all title headers in Visual Studio
483
Getting property name from lambda expression
401
Parameter name reflection: abuse of C # lambda expressions or syntax flamboyance?
328
How can I switch my subscriber to Visual Studio 2013?
137
Visual Studio 2015 Broken Razor Intellisense
132
Visual Studio 2013 IntelliSense stops working for ASP.NET MVC5 controllers
five
Razor in class library missing intellisense
3
Razor does not recognize @model or Lambda @Html methods
0
MVC Razor Intellisense offers Html.TextBox but not Html.TextBoxFor



All Articles
Loading...
X
Show
Funny
Dev
Pics