Minor IDE Auto Format gripe

if I auto format this already formatted bit of code I get

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

I would much prefer

void setup() 
{  // this bracket on the left directly above
}  // its companion bracket. orderly appearance, simpler comparison of opening and closing brackets

void loop() 
{   // this bracket on the left directly above
}   // its companion bracket. orderly appearance, simpler comparison of opening and closing brackets

is this an unreasonable request?

(deleted)

You can configure the Arduino IDE's Auto Format tool to your preference. The file is at {Arduino IDE installation folder}/lib/formatter.conf.

The configuration options for brace style are documented here:

So if you like the Allman brace style, you would add this to the file:

style=allman

Thank you!

I didn't understand to ask this, I just suffer in silence!!!

Cheers,
Kari

You're welcome. I'm glad if I was able to be of assistance.

One thing I should mention is that if the Arduino IDE is running you need to restart it before changes to formatter.conf take effect.

Also note the helpful comment in formatter.conf:

# If you wish to change them, don't edit this file.
# Instead, copy it in the same folder of file "preferences.txt" and modify the copy. This way, you won't lose your custom formatter settings when upgrading the IDE
# If you don't know where file preferences.txt is stored, open the IDE, File -> Preferences and you'll find a link

You can find the location of the folder by clicking the link on the line following "More preferences can be edited directly in the file" in the Arduino IDE's File > Preferences.