after auto-fomating in Arduino Pro IDE. It changes the braces position (but legacy IDE doesn't):

hi @Master811129
this is a setting in Clangd format that defaults to such behaviour
the Java IDE does not use ClangD for formatting.
I'm sure this can be tuned in the future, because everyone likes their style.
Arduino sketches are formatted according to a very specific set of rules in Astyle, so I guess that this behaviour will have to be tuned to reflect the one in the Java IDE.
Let's check wtih @per1234 and see what he has to say
after auto-fomating in Arduino Pro IDE. It changes the braces position (but legacy IDE doesn't):
Yes, this is a reasonable request. However, we have to figure out how users can/will customize it.
Let's investigate the BraceWrappingFlags options from here. Here is an online clangd formatter with preview.
Most helpful comment
Yes, this is a reasonable request. However, we have to figure out how users can/will customize it.
Let's investigate the
BraceWrappingFlagsoptions from here. Here is an onlineclangdformatter with preview.