[thelist] Spaces instead of tabs, (was: anyone spot the software....)

Magnus Østergaard magnus at slackware.adsl.dk
Fri Mar 22 17:52:01 CST 2002


Chris Blessing wrote:
>
> eyes.  Plus it's more consistent throughout because it only takes 1 tab
> instead of 2, 3, 5 or 7 spaces, whatever your style may be.
>
> But you're right, tabs can sometimes be "misconstrued" depending on the
> platform and/or editor, strangely.  A space is always a space, but a tab can
> differ.

You see that is the beauty of tabs, some people think 3, 4 or 7 spaces
looks nicer. If the file i tabed you can change the tab size in your
editor. So everyone is happy. Sort of like css vs. font tag. Separate
content from style :-)

If you use UNIX you will find lots of scripts that will convert code to
fit your coding style, and for the rest there is vim ;-)

<tip type="Tab size">
The default tab size is eight spaces. To make VIM display a tab as 4
spaces do:
:set tabstop=4
</tip>

Oh, and please don't start the "how to place the {}'s" flame war... lets
just say taste differs


Kind regards,

--
Magnus Østergaard



More information about the thelist mailing list