Code Style

Brad Anderson brad at dsource.org
Fri Jun 15 13:15:43 PDT 2007


Robert Fraser wrote:
> Hi all,
> 
> Right now, I'm working on a code formatter for the Descent IDE
> (http://www.dsource.org/projects/descent ), and I'm planning to make a (or
> possibly more than one) "default" profile for code style. All this stuff
> will be configurable down to the tiniest detail (if you want spaces before
> the comma but not after in superclass/interface lists and after the comma
> but not before everywhere else, that'll be evry possible)

Awesome.

It will be possible to code in my style and then if committing to Tango, move
it over to Kris/Sean/Lars style.  I mean, that is, if they'd ever even want
the code ;)

[snip]
> 
> Do you indent with tabs or
> spaces (or both?) What size tabs/how many spaces do you use?

I'm hoping all of this is configurable, including "turn tabs to spaces"

[snip]

> Also, a more general question... would you ever consider actually USING a
> code formatter/have used one in the past?

I used Jalopy a lot, until the one in Eclipse got to be "good enough" - still,
I miss it, because there were a lot more configurable options in Jalopy than
the current one in Eclipse.  Also, the author took it closed-source.  I toyed
with doing this exact project, but realized that I didn't know enough to pull
it off (way back then, maybe even now :) ).

BA



More information about the Digitalmars-d mailing list