Suggestion: Formatting options for decompiled code
Would it be possible to add options to change the decompiled code formatting style?
In particular:
- Make all
if()statements use{ ... }(instead of 2-line ifs that don't use no curly braces) - Add empty lines above and below
if()andwhile()statements
I can make a personal regex script to automate the second thing, but 2-line ifs are much harder to account for.
(edit: I originally misspoke and said "2 newlines" but meant \n\n ie. 1 empty line)
I see the need for the first one (though maybe not if you just have a one-line if), but why have 2 newlines above and below if / while statements?
why have 2 newlines above and below
if/whilestatements?
To space out the code a bit, so it's easier to visually parse. Like this:
| tight | spacious |
|---|---|
![]() |
![]() |
This is a simplified example, with larger complex blocks it helps more.
Should this be merged with #944 ?
Should this be merged with #944 ?
Happy to merge, I'll comment on 944

