Although the code block does a good job of auto formatting code most of time it does mess up occasionally and when editing often exhibits some strange behavior such as splitting the code block which can result in bad formatting which is not corrected by re-selecting code block.
Is there anyway as a work around you could map a key to produce 4 spaces, It would make life sooo much easier when correcting code layout.