Intellisense won't suggest asp-for Tag Helper properties RRS feed

  • Question

  • User1434241939 posted

    In my View Model code, asp-for correctly shows me that "LostMisspelled" is not a member of the Data Model by underlining it in red.  It also correctly accepts "Lost" and "@Model.Lost" as asp-for properties.

    However, while Intellisense suggests Lost as I type "@Model.L" it refuses to suggest Lost as I type "Lo" on the first line of code.  However, once I've finished typing Lost, Intellisense doesn't flag it (it shouldn't) so it knows Lost is just fine.

    So the question is, why won't it auto-suggest or auto-complete Lost as I'm typing it, the way it does with @Model.Lost ?

    <label asp-for="Lost"></label>
    <label asp-for="LostMisspelled"></label>
    <input asp-for="@Model.Lost" />

    Thursday, April 30, 2020 3:47 PM

All replies