Groovy Indent


#1

Can I change Groovy Language format / indent to make this work?

if (flag) {
   println "GOOD";
} else {
   println "BAD";
}

Currently, after I click “Auto Indent”, it will be like this:

if (flag) {
   println "GOOD";
   } else {
       println "BAD";
  }

But if I leave the “else” on its own line, then it seemed to be OK:

    if (flag) {
       println "GOOD";
    }
    else {
       println "BAD";
    }

#2

no one uses Atom to edit Groovy script ? just curious to see no one experienced or noticed this formatting issue. Thanks!