Disable Line-Break-Removal in Blazor Event
I am using Blazor with .Net 8. My goal is to be able to have multiline lambda function bodies.
Here is an example:
<Button
Content="test123"
OnClick=@(() => { if (ShowInitialConfigDialog) { _configPage++; } else { OnClose.InvokeAsync(config); } })
/>
If I add a line break somewhere inside the curly brackets in the OnClick lambda function, they are instantly removed by Rider. How can I disable this?
Thanks Mario
Please sign in to leave a comment.
Hi Mario!
I've reproduced the issue you've described and reported it to our bug tracker: RSRP-498239 Cannot add line break after { in Razor file.
Feel free to follow it for updates.