This may solve your issue partially:
On Jul 18, 2012, at 10:32, Jacob Strohm <jacobstrohm@gmail.com> wrote:
> Hello all,
>
> Does Geany have any kind of automatic code formatter, either in the core or as a plugin? Looking through the plugins project/website, I didn't see anything like it, and if not I think I'd enjoy working on it in my free time, I just wanted to double check before investing a bunch of time.
>
http://editorconfig.org
Currently you can only deal with indentation using it.
Hi,
I'd personally be very interested in using a plugin that can format the code precisely automatically. IIRC VisualStudio does this very well but is not flexible as to code style (or I didn't find the preferences). I suspect it would be quite difficult to write a good one that is at the same time accurate, flexible and supports multiple non-similar languages (C-style vs Python, for example).