Hadi Hassan Hadi Hassan - 4 months ago 16
HTML Question

In MVC, how to add intellisense to the html helpers

I am wondering if there is a way to allow the intellisense to work with the html attributes of the mvc helpers like

@Html.EditorFor(m=>m.FieldName, new {@class="from-control col-md-3"})


Is there a way to allow intellisense inside ( @class= "... here ..." )?

Answer

The is intellisense will not work since the @Html.EditorFor(m=>m.FieldName, new {@class="from-control col-md-3"}) is a C# code, so css intellisense will not work inside c#.

Comments