June 2025
Intermediate to advanced
1093 pages
33h 24m
English
Get used to a uniform style with regard to the indentation depth. A consistent style increases the reading flow. Here, too, you should consult with your team members.
These are the usual conventions:
Indentations should only be made with spaces or one tabulator.
If using spaces, two or four spaces are common; rarely, eight are used.
My personal favorite is four spaces for indentation, but often you see two.
If you use the tabulator for indentation, your IDE certainly has a setting that allows you to set the display to convenient two-, four-, or eight-space counterparts.
Just don't do one thing: never mix space indentation with tab indentation—neither within a line nor within a file. If you do, a colleague ...
Read now
Unlock full access