Hadi Hassan Hadi Hassan - 1 year ago 77
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 Source

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#.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download