Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

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

$
0
0

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?


Update: 2025-04-19

This issue is still ongoing in Rider 2025.1

Here is also a video of a freshly created solution and then refactoring of the code: https://share.cleanshot.com/9svMpb1f


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>