Tabs Or Spaces

Tabs is always 1 spaces are usually 4 but some prefer 2 spaces.
Tabs or spaces. I would reply both because i use tabs for some programming languages and spaces for other languages but never both in the same document. Tabwidth 8 tab width in spaces. In terms of how many spaces or tabs constitutes indentation it s more important to be consistent throughout your code than to use any specific tab stop value. The fact that you can configure your editor to match the amount of spaces you want each tab to represent makes them much better.
Mixing tabs and spaces on the other hand implies using tabs and spaces within the same document and indeed sometimes on the same line. Tabs 2 spaces 3 spaces 4 spaces 8 spaces require an analysis for a new language check out the author review the source code. Geeks have been choosing sides for the past 16 years should programmers indent their code using spaces or tabs. Both is not the same as mixed.
It uses tabs width 8 for indentation and blanks for alignment. 6 in a file with tab one can know which character is used for indentation and which one for string spacing. Add to that that i can just tab once and get four spaces. Not need to agree how many tabs to use.
So you say people shouldn t fight about tabs spaces but then just show a solution that makes everyone on the same team use the same method. If false all comments are elided from the output. But now the infamously trivial flame war has been given a new prominence by a study from google possibly inspired by the dialogue in a recent episode of hbo s silicon valley. Let every client defines how it wants to checkout the file and view it locally in his own editor and always commit after replacing all the spaces.
Why can t it be more similar to the way git handles crlf. Tabs are better imo.