I'm a new user of LyX, and reading the tutorial I found that I can't add freely spaces and empty lines to the LaTeX code, since it's about formatting the text, and it's done by the compiler.
I can really understand the philosophy, and that's why I decided to use that tool; what I find hard to understand, is why I can't use spaces and empty lines to improve the readability of the code itself, and maybe let the compiler ignore them. Or maybe there is a "dummy" marker, that allows to insert a space in the code ignored by the compiler?
Follow up: I eventually switched to LaTeX right after that document and sticked to it.