views:

317

answers:

1

Duplicate of Are spaces preferred over tabs for indentation and almost certainly others

For a long time the coding rules and guidelines in my company recommended usage of tabs (of size 4) over spaces (to save valuable storage space), initially I found it tough when I started working for my company, in the long run I got used to it. Now suddenly they say, we need to use spaces instead of tabs. And the indentation still is at 4. But recently I started writing RTL, and the hardware engineers use indentation at 3. I am a bit confused. What is behind all these 3, 4, or sometimes 2. Which is the best? and why?

+2  A: 

This will get closed just like the 100 other "tabs vs. spaces" questions that have been asked.

Basically what it comes down to (at least in my mind) is that you can use whatever the hell you want for your own projects, but when you're working in a team, follow what the coding standards tell you to use.

Chad Birch