The next version of B4A will include an auto-formatting feature.
It fixes the code indentation. You can activate it by selecting the text and pressing on Alt + F. It will also be applied to pasted code. This is very useful as code copied from the forum doesn't include any tabs at all.