You are right. Code is much more readable if properly indented. How to find out about a missing
} as long as a line ends with
How much you indent an
\item isn't important.
If you use new lines to get readable code like
bear in mind that you might get unwanted white space.
Indention should be made by the editor »automagically«. Emacs in AUCTeX mode is very good doing that for you, but you can't learn everything at the same time. Start with LaTeX, later get a real editor (=Emacs).
It has been said in the comments that TeX ignores spaces at the start of a line.
Yes, but there is (at least) one exception from this rule: The package »comment« (you get the documentation probably with
texdoc comment on the command line) provides an environment called comment and that does not work with leading spaces before