So I just have a beef with the way Visual Studio formats razor code. I’ve always had some problems with visual studio and how it formats UI code, it always seems to do a real super bad job that the industry doesn’t want to follow.
So the example looks real real stupid. And I’m trying to figure out if there are mods or ways to fix this issue. It just looks real real bad.
Anyone know anything about this? lol
@using Company.Mobile2.Enums
@helper BidsByShipment(string generatedId, int bidsCount, int activeBidsCount)
{
if (bidsCount > 0)
{
<a class="Company-listview-link Company-listview-bids" href="/Shipping/Bids/ByShipment?id={0}">
@if (activeBidsCount > 0)
{
<text>@bidsCount (@activeBidsCount @GetStr("Company"))</text>
}
else
{
<text>@bidsCount</text>
}
</a>
}
else
{
<text>0 @GetStr("Company")</text>
}
}
Apparently there’s no way around it for the moment, this is what they have answered in another related question: Why doesn't Visual Studio code formatting work properly for Razor markup?