I just had the opportunity to look at the tree-sitter today.
This looks exceptionally promising! Having well-formatted code in self-contained projects is almost a pre-requisite for building larger scale software and this looks like a good avenue to achieve that. (My attempts were clang-format were, to put it midly, unsuccessful.)
For some reason I though the IDE would do mild formatting for you, but I never use it so I may be mistaken. I was poking through the SC code and I couldn’t find where that might live so I may be mistaken. Does anyone know if this does exist and if so, what class those live in ?
If it exists it may be straightforward to modify it into treesitter friendly code. If not, it may be time to think about what a standard format should look like, not necessarily the standard format. (I understand there are many different coding styles, so a formatter should account for that, like clang-format does.)