will trillich wrote: ... > one tab, indent one level. done. (why clutter up your source > code with all those spaces?) and if you really go overboard ...
it's very simple. generally you want lot of peole to view and/or edit the source code. as long as you use spaces only, it looks the same everywhere - printouts, different editors, when you send piece of code via email etc... when people edit the source code it is fairly easy to keep it consistent. on the other hand, when you use tabs other than 8 characters wide you get a mess of very unplesant combination of tabs, some tabs expanded to 8 some to 4,3,2 spaces... also, you will never be able to change tabs to other then 8 characters everywhere (e.g. think of various devices - character based, printers, gui tools etc...) generally, it's a good idea to use 8-space tabs or spaces... it makes it easier to collaborate & communicate... erik