Re: Tab indentions on different platforms?



On Sat, 29 Dec 2007 15:29:25 +0000, Thorsten Kampe wrote:

I'd personally go for spaces because:

1. I don't like things I cannot see (control characters)

You can see spaces but not tabs? Your editor is pretty weird. In all the
editors I've every used, both spaces and tabs show up as empty white
space. (Or coloured space if I set the editor to use a coloured
background.)


2. I never had problems with spaces but plenty with tabs

Periodically, I ask on this list what problems people have with tabs.
(I'm fully aware that mixing tabs and spaces is a Bad Thing.) I've had
little luck getting any answer except "Tabs are bad, m'kay?".

I'm only aware of two problems that some people run into due to the
consistent use of tabs rather than spaces.

* Some news clients don't display tabs correctly, thus making it hard to
copy and paste code direct out of the news reader into your source;

(But of course if you copy code using spaces, and the number of space
characters used per indent level doesn't match your source code, you'll
have problems too.)

* Some applications "helpfully" convert tabs into spaces, thus meaning
that when copy code from them, you end up with spaces instead of tabs.

What problems have you had with tabs that aren't related to buggy
applications or users that mix tabs and spaces?



--
Steven
.



Relevant Pages

  • Re: Great SWT Program
    ... It's not putting mouse support into an editor running on modern ... Didn't I explain that this whole thing is "you don't like tabs" ... characters into spaces" feature on. ...
    (comp.lang.java.programmer)
  • Re: Bluefish (was: HTML tools for linux)
    ... > things like open multiple files recursively based on regular ... > I like this editor a lot, and only have a few nits to pick. ... > spaces instead of tabs, the page appears to be saved with tabs. ... Feel free to contact me off the list about Bluefish. ...
    (Fedora)
  • Re: AfxGetApp() returns NULL
    ... VS to edit my code, it gets the identation right, following my indentation ... OPTION of whether to use spaces or tabs. ... me, and written using my editor, and given away free to others as a courtesy, I see no ... of my automation; worse still, the creators of VS think that there is no ...
    (microsoft.public.vc.mfc)
  • Re: [opensuse] editor that does not eat out TAB characters
    ... But, regardless of which editor I use, python interpreter prints ... Your editor, editor toolkit, clipboard, or terminal toolkit may be munging ... It's often not easy to copy/paste tabs. ...
    (SuSE)
  • Re: Creating cvf project files
    ... convenient for me than the Visual Studio editor), ... I try to avoid tabs when it comes to fortran. ...
    (comp.lang.fortran)