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

JDT

Joined Feb 12, 2009
657
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.
 

ErnieM

Joined Apr 24, 2011
8,377
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.
 

atferrari

Joined Jan 6, 2004
4,769
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.
 
Top