General / Off-Topic code indentation - tabs or spaces?

This is thread will probably go the same way as the open/solo/pg one ;)

Bloody git gudding space users griefforing my code. I want to tab my way! I don't care if that makes me a codebear, tabbing is how I like it and if you don't let me use it then I am not being allowed to indent my own trail! :mad: :mad: :mad: :mad: :mad: :mad:
 
Last edited:
Whichever you decide to use, you should never mix the two. This prevents anyone else from being able to reformat correctly in their IDE. I prefer tabs, as then most IDEs allow you to set the number of spaces a tab will indent by. I choose different indent sizes depending upon the size/resolution of the monitor.
 
Fwiw, I always used tabs (faster), but it's been years.

i doubt anyone actually presses space a multiple of 4 times in a row to indent, but go figure :D

everybody (methinks) uses tabs. what's debated is what your editor finally saves. in work groups it's specially important that this is consistent. if there are diverse environments it's just a matter of configuring all editors the same way (editorconfig linked above helps a lot with that, but many other solutions exist).
 
I always prefer tabbing, because it's faster to do so, and easier to remove them too. In the end it's also more concise to stick with one style.
 
Back
Top Bottom