I used uncrustify for D. If you are doing the code formatter as a descent plugin, please make full functionality also available from commandline. So the code formatter can be shared independent from the used IDE.