Just moved to IDEA, which seems to default to 4-space indentation; not sure what's messing the formatting up. I'll have a play around :/