Elastic tabstops

Thomas Orgis thomas-forum at orgis.org
Tue Jul 4 01:20:22 CEST 2006


Am Mon, 3 Jul 2006 23:39:54 +0200
schrieb Yann <cactux at gmail.com>: 
> Anyway, I just subscribed to this discuss list after reading this article:
>  - http://nickgravgaard.com/elastictabstops/

I somehow don't understand this whole "agreeing on tab width" thing.
I use tabs to indent blocks of code.

if(bla)
{
	block
	block
}

Regardless of tab width setting in editor this should extrapolate to some appropriate aligning. Ok, sometimes I even do stuff like

{
	func(parm1, parm2,
	     parm3, parm4);
}

(where I still need to adjust the block indent stuff via macro not to desttroy this layout, apparently)

There I do the logical indent with tabs and the optical "sugar" fine alignment with spaces...
I never try to match up tabs with any certain width - am I a bad coder?
Maybe this thread can enlighten me about this problem and why I should see it.

But anyway, I'd be ok with setting the display tab width to 1cm or 50px/pt instead of some number of spaces _and_ extremely ok with nedit not trying to mix tabs and spaces (see earlier discussion about my problem with this).

Greets,

Thomas.


More information about the Discuss mailing list