You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arduino uses Artistic Style for auto formatting: https://sourceforge.net/projects/astyle/
From what I can see, it does not currently have this capability. So I think the best way to proceed would be for you to make the feature request to the AStyle developers. Once the Artistic Style developers have added the feature, you'd then need to petition Arduino to update the version of AStyle they are using.
Hi @Avamander thanks for your interest in improving the code formatting capabilities of the IDE!
There is some good news related to this feature request. #11543 will change the Arduino IDE from using the Artistic Style formatter to ClangFormat, which provides just the sort of behavior you requested here.
ClangFormat is very popular and actively developed, and even suggested by the Artistic Style developer at the post @fabiuz7 kindly shared.this statement where they state that they are no longer able to play as active a role in developing Artistic Style.
You can give the test build for the ClangFormat/Arduino IDE integration a try. The downloads are available here: #11543 (comment)
If you do try it out, please let us know how it goes!
Activity
per1234 commentedon Jun 10, 2020
Arduino uses Artistic Style for auto formatting:
https://sourceforge.net/projects/astyle/
From what I can see, it does not currently have this capability. So I think the best way to proceed would be for you to make the feature request to the AStyle developers. Once the Artistic Style developers have added the feature, you'd then need to petition Arduino to update the version of AStyle they are using.
Avamander commentedon Jun 10, 2020
I opened an Astyle feature request: https://sourceforge.net/p/astyle/tickets/123/
fabianoriccardi commentedon Mar 25, 2021
Do you know if Astyle is abandoned? I have looked at the repo but I don't see any activity in the past 2 years...
fabianoriccardi commentedon Mar 30, 2021
Sadly, the answer.
per1234 commentedon May 25, 2021
Hi @Avamander thanks for your interest in improving the code formatting capabilities of the IDE!
There is some good news related to this feature request. #11543 will change the Arduino IDE from using the Artistic Style formatter to ClangFormat, which provides just the sort of behavior you requested here.
ClangFormat is very popular and actively developed, and even suggested by the Artistic Style developer at the post @fabiuz7 kindly shared.this statement where they state that they are no longer able to play as active a role in developing Artistic Style.
You can give the test build for the ClangFormat/Arduino IDE integration a try. The downloads are available here:
#11543 (comment)
If you do try it out, please let us know how it goes!