How to enable code folding for redundant braces in C#?

I have a huge chunk of gross math inside a function. That math references a bunch of local variables declared before it, and creates a bunch of local variables. I want to put it into a local scope, but Rider won't let me fold that scope, it only suggests that I remove the redundant braces around it. How do I make it fold it?

(this should go without saying, but I don't want any style guide suggestions)

0
1 comment

Hello Louis,

Thank you for contacting Rider support.

You might want to upvote this feature request on our tracker: RIDER-85651 Support folding anonymous code blocks

Also, you can find the workaround there in the issue description.

Hope that helps. Have a nice day!

1

Please sign in to leave a comment.