In MVC 5, when you scaffold a View, Create, with a model - in order to build a form that will be bound to the model - the scaffolder in MVC 5 used columns (col-md-10 and col-md-2) to put labels to the left of textboxes:
<div class="form-group">
@Html.LabelFor(model => model.Username, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Username, new { htmlAttributes = new { @class = "form-control", autocomplete = "off" } })
@Html.ValidationMessageFor(model => model.Username, "", new { @class = "text-danger" })
</div>
</div>
In Core MVC 2, all labels are above text boxes - which is super space inefficient:
<div class="form-group">
<label asp-for="Email" class="control-label"></label>
<input asp-for="Email" class="form-control" />
<span asp-validation-for="Email" class="text-danger"></span>
</div>
I could edit all of this by hand but this defeats the object of scaffolding and will take a long time.
Is there any way to get the scaffolder to use the previous col type of layout - or are there any third party options?
I can find nothing in Google. Thanks.