Thread overview
Is there a tool to format/indent D code
Jan 28, 2013
Sparsh Mittal
Jan 28, 2013
Jussi Jumppanen
Jan 29, 2013
Jacob Carlborg
Jan 30, 2013
Sparsh Mittal
January 28, 2013
I wanted to ask if there is a tool to format/indent D code. I searched google but could not find. Thanks.
January 28, 2013
On Monday, 28 January 2013 at 17:20:21 UTC, Sparsh Mittal wrote:

> I wanted to ask if there is a tool to format/indent D code. I searched google but could not find. Thanks.

You could try the Astyle utility:

      http://astyle.sourceforge.net/astyle.html

Astyle is designed to work with "brace languages" so it can
handle D to a limited extent.

The Astyle is used by the Zeus IDE to do generic styling so I
did a quick check in Zeus on some D code and it seemed to work.

But for Astyle to work the way you want, you will need to spend
some time setting up the coding style that you prefer.

Jussi Jumppanen
Author: Zeus IDE
January 29, 2013
On 2013-01-28 18:20, Sparsh Mittal wrote:
> I wanted to ask if there is a tool to format/indent D code. I searched
> google but could not find. Thanks.

Checkout Mono-D:

http://forum.dlang.org/thread/mgzucorrreevueyjjjiz@forum.dlang.org

-- 
/Jacob Carlborg
January 30, 2013
Thanks a lot. That was very helpful.