www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Is there an indenter/formatter/prettyprinter for D?

reply Davidson Corry <davidsoncorry comcast.net> writes:
Either one dedicated to D (D2 specifically), or a configuration for 
'indent' or some other cross-language prettyprinter?

Thanks.
Oct 25 2011
next sibling parent reply Jesse Phillips <jessekphillips+d gmail.com> writes:
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.
Oct 25 2011
parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Uncrustify works with D. You might want UniversalIndentGUI as a
frontend if you don't prefer commandline.
Oct 25 2011
parent Davidson Corry <davidsoncorry comcast.net> writes:
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.
Oct 26 2011
prev sibling parent Jacob Carlborg <doob me.com> writes:
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
Oct 25 2011