[OT] Auto code reformating / one coding style enforcment.

Sean Kelly sean at f4.ca
Mon Aug 14 18:31:32 PDT 2006


Regan Heath wrote:
> On Mon, 14 Aug 2006 09:14:04 -0700, Sean Kelly <sean at f4.ca> wrote:
>>
>> Hard tabs work okay for leading indentation, but for inner 
>> indentation--long function calls, if statements, variable lists, 
>> etc--they can render code unreadable if viewed with a different tab 
>> width.  Even worse is if in a group project, some people use hard tabs 
>> and others spaces, and those using hard tabs have different tab widths.
> 
> Simple; don't use hard tabs for internal* spacing, only for leading 
> indentation. Use spaces for internal spacing.
> 
> * meaning in the middle of a line of text.

Doesn't work with the way I format code.  See my other post for an example.


Sean



More information about the Digitalmars-d mailing list