[TUHS] tabs vs spaces - entab, detab

Greg A. Woods woods at robohack.ca
Fri Mar 5 08:10:20 AEST 2021

At Thu, 4 Mar 2021 15:27:27 -0600, Will Senn <will.senn at gmail.com> wrote:
Subject: Re: [TUHS] tabs vs spaces - entab, detab
> Wow, mixed tabs and spaces? On purpose? That's nuts :).

In code tabs are for indentation -- one tab per level of indentation.

In code spaces are for alignment -- e.g. to align comments at the end of
the line use spaces between the end of the code and the beginning of the

(for those of us who use emacs there's smart-tabs-mode -- it's not
perfect, but it helps get these things right the first time around,
i.e. when you don't have "go fmt")

					Greg A. Woods <gwoods at acm.org>

Kelowna, BC     +1 250 762-7675           RoboHack <woods at robohack.ca>
Planix, Inc. <woods at planix.com>     Avoncote Farms <woods at avoncote.ca>

More information about the TUHS mailing list