indent after if doesn't happen automatically

When I type the following, it doesn't indent the second line after I hit enter on the first line:


However, if I highlight it and reformat the code, it indents it as expected:


How can I make it so that it indents properly as I type? (I'm a long time eclipse user and I'm trying to get used to this new environment, so please be kind if I ask silly questions.)

Please sign in to leave a comment.