How can I automatically reformat decompiled code?

I find the code style of decompiled code extremely difficult to read. It does not follow my current indentation rules (4 spaces) and instead uses only 2 space. It does not follow the always require setting for curly braces. All in all, it is awful!

Not only that, but is seems that forcing a reformat (Ctrl+Alt+L) fails silently.

I would like to be able to automatically apply my default code formatting profile to the decompiled code. Is there a way to do this?

1 comment

Hi Dan Sorak

Unfortunately, it is not possible to reformat decompiled code in Rider. We have a feature request for this; please upvote it! For now, you can format decompiled code in our free decompiler tool dotPeek

Feel free to try! 



Please sign in to leave a comment.