- I find it makes the code more readable.
- Highlights when there is a lot of nested code, that might or should be refactored.
- It is consistent with C#, I know you can also change the number of spaces for tabs in C#, but 2 spaces in C# looks wrong to me.
Wednesday, 7 December 2016
4 space indent vs 2 space indent
Some developers like 4 spaces for the indent and some like 2 spaces. Originally I preferred 2 spaces, but ended up working for a company that insisted on 4 spaces, which is understandable to keep code consistent. And after using a 4 space indent for 5 years I actually prefer it for the following reasons: