Yes, your .clang-format file with proper comments put me on the right track.
Unfortunately I find the original file a mere hacker soup, composed by people who believe everything is self-evident so nothing needs to be explained..
You have to place the opening brace on the newline yourself and the indent after an autoformat is annoying; you also need to add the comma after the last element (but I think that that can be done automatically with a setting.
.
The settings
ptillisch wrote "Everything is explained in great detail in the extensive ClangFormat documentation. It would be silly to attempt to maintain parallel documentation in comments in the .clang-format file."
Ok, that's great. Yet I wonder why the link to the very documentation is missing from the header in the .clang-format file.
If it were in place none of this forum conversation would have taken place ...
Thousands of possible combinations of options, many of which are opaque at best. Oh how I wish there was a simple PutAllBracesOnTheirOwnLine setting but that would be much too simple
sterretje
i found your zip file of .clang-format on another thread. i put it in my arduino ide as you said and i think it's working. so i wanted to say Thank you.
question how do i open it to edit some of the settings?
I found this clang-format configuration tool.
You select the version, 14 for Arduino IDE, and test out your changes with changes shown live in sample code, then download your config file.