...
Tabs should be used to indent all code blocks. Spaces should never be used to indent code blocks. Mixing tabs and spaces results in misaligned code blocks for other developers who prefer different indentation settings. Consider the following code block which is indented with all tabs (shown with and without whitespaces):
|
|
|
Indented properly with tabs | Code is lined up properly | Indentation width set to 8 |
Now consider a situation where another developer is using an editor which is configured to indent using spaces by default. The developer makes changes to 1 of the lines:
|
|
|
Indented incorrectly with a mix of | Code appears lined up to the | Code is not lined up for other |
meaningful
...