Xcode is apparently notorious for being slow, but despite being solid in a lot of areas it’s also quite buggy in some. I’ve been running into an indentation bug a few times now and I mustered up the ire to finally report it using Apple’s bug tracking system Radar.
If you work inside Apple and have access to this monstrosity, I’m told this link will work for bringing the issue up. The rest of us plebeians can use my personal copy of the bug for all technical details. Yes, I keep a personal replication, meticulously groomed, of all bugs I ever file on apple.com. All two.