Xcode stopped auto-indenting
===

When I press <kbd>Enter</kbd> in Xcode 4, the cursor ends up at the beginning of the next line instead of indented as the previous line. I don't remember doing anything that could cause this, such as modifying any editor preference or anything like that.

Why is this happening, and how can I fix this?