git gurus: Any way to set it up to auto-warn contributors about tab indents?
Vladimir Panteleev
vladimir at thecybershadow.net
Sun Aug 14 11:50:29 PDT 2011
On Sun, 14 Aug 2011 21:48:26 +0300, dsimcha <dsimcha at yahoo.com> wrote:
> What's wrong with configuring your editor to convert tabs to spaces? I
> know CodeBlocks, Vim and Notepad++ do this for you if you configure them
> right (though I don't remember exactly how to configure Vim to do this).
> Any other editor worth its salt should, too. I use this for all my
> code, not just Phobos. I prefer to type a tab because it's much easier
> to type than some specific number of spaces, but I prefer to have spaces
> in my code because they take up a consistent amount of columns on all
> viewers, whereas different tab stops can really make your code look
> messy.
Oh boy, here we go again.
No, some people prefer to use tabs for their code. If you use them
correctly (tabs for INDENTATION, spaces for ALIGNMENT), your code will
look great on all tab widths.
--
Best regards,
Vladimir mailto:vladimir at thecybershadow.net
More information about the Digitalmars-d
mailing list