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:

if(true)
return;

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

if(true)
....return;

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.