RonzyFonzy
RonzyFonzy

Reputation: 698

Incorrect Code Formatting for Blazor/Razor Files in JetBrains Rider After Upgrade

I recently upgraded JetBrains Rider (from 2023.3.6 to 2024.3.5), and now my Blazor/Razor (.razor) files are incorrectly formatted when I use the built-in code formatter (Ctrl+Alt+L / ++L on macOS). Before the upgrade the formatting was like this

<SomeComponent>
    <DataAnnotationsValidator />
</SomeComponent>

@code {
    [Parameter]
    public int SupplierId { get; set; }
}

After the upgrade I get this

<SomeComponent>
    <DataAnnotationsValidator/>
</SomeComponent>

@code {
[Parameter]
public int SupplierId { get; set; }
}

Did anyone else have this problem and how did you solve it?

Upvotes: 0

Views: 22

Answers (0)

Related Questions