...
|
|
|
Indented properly with tabs. | Code is lined up properly properl. | 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 |
A mix of tabs and spaces is only acceptable in order to indent sections of code which spans multiple lines but is not an entire block between curly braces. The following example illustrates this:
|
|
Everything in the notify command is indented with a single tab. | Code is lined up properly and easy to read. |
|
|
The editor's indentation with is changed to 8. | The code remains lined up properly and easy to read. |
meaningful
...