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
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.