www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Is there a tool to format/indent D code

reply "Sparsh Mittal" <sparsh0mittal gmail.com> writes:
I wanted to ask if there is a tool to format/indent D code. I 
searched google but could not find. Thanks.
Jan 28 2013
next sibling parent "Jussi Jumppanen" <jussij zeusedit.com> writes:
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
Jan 28 2013
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
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
Jan 29 2013
parent "Sparsh Mittal" <sparsh0mittal gmail.com> writes:
Thanks a lot. That was very helpful.
Jan 30 2013