Thread overview
Is there an indenter/formatter/prettyprinter for D?
Oct 26, 2011
Davidson Corry
Oct 26, 2011
Jesse Phillips
Oct 26, 2011
Andrej Mitrovic
Oct 26, 2011
Davidson Corry
Oct 26, 2011
Jacob Carlborg
October 26, 2011
Either one dedicated to D (D2 specifically), or a configuration for 'indent' or some other cross-language prettyprinter?

Thanks.
October 26, 2011
On Tue, 25 Oct 2011 17:07:31 -0700, Davidson Corry wrote:

> Either one dedicated to D (D2 specifically), or a configuration for 'indent' or some other cross-language prettyprinter?
> 
> Thanks.

Not really. indent already mostly works, similarly vim mostly gets it right. Visual D has something but I don't know if it is any better than indent.
October 26, 2011
Uncrustify works with D. You might want UniversalIndentGUI as a frontend if you don't prefer commandline.
October 26, 2011
On 2011-10-26 02:07, Davidson Corry wrote:
> Either one dedicated to D (D2 specifically), or a configuration for
> 'indent' or some other cross-language prettyprinter?
>
> Thanks.

The Eclipse plugin Descent has a formatter. Don't know if it works for D2.

-- 
/Jacob Carlborg
October 26, 2011
On 10/25/2011 6:14 PM, Andrej Mitrovic wrote:
> Uncrustify works with D. You might want UniversalIndentGUI as a
> frontend if you don't prefer commandline.

Oh, I definitely prefer command line.

As far as I'm concerned, user interface hit its peak with CP/M's PIP,
and has gone downhill ever since. <grin/>

Thanks for the tip on Uncrustify.