Why tabs are not preferred while programming & prefer to use spaces

Discussion in 'General Electronics Chat' started by aamirali, Nov 5, 2012.

  1. aamirali

    Thread Starter Member

    Feb 2, 2012
    415
    1
    Why tabs are not preferred while programming & prefer to use spaces
     
  2. JDT

    Well-Known Member

    Feb 12, 2009
    658
    85
    Are they? I prefer tabs myself. Actually makes no difference as whitespace is usually ignored.

    Only possible advantage to using spaces is that the layout will be preserved when viewing on different editors where the tab spacing setting might be different.
     
  3. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,389
    1,605
    I for one tell my IDE to use spaces instead of the tab character. I may also wash imported code to make a similar change.

    The reason is just to get code to indent and look the same way no matter what program I am viewing it on.
     
  4. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,648
    764
    As far as I know, the "tab" was expected to work the same for any soft.

    I can see that is one of the less standard things we have around.

    With MPLAB, I decided, long time ago, to use spaces what, as said above, keeps the appearance with any soft.
     
Loading...