2 Replies Last post: Jan 13, 2014 10:46 AM by Alex Yan  
Alex Yan Newbie 17 posts since
May 22, 2012
Currently Being Moderated

Jan 13, 2014 12:24 AM

Intellij doesn't automatically indent after no bracket if statement, (as3, js)

Hey, so after I do something like
"if (true)" and then press enter, intellij doesn't automatically indent the new line despite it being set so in code style. This works when working with java files, but does not work for AS3 or Javascript/Typescript.
Also running the code formatter will add the indent.

 

How to fix?


Thanks

Alexander Doroshko JetBrains 1,260 posts since
Jun 9, 2009
Currently Being Moderated
Jan 13, 2014 10:24 AM in response to: Alex Yan
Re: Intellij doesn't automatically indent after no bracket if statement, (as3, js)

You may file an issue in http://youtrack.jetbrains.net.

By the way, why not using better style with braces "if (true){" ? Indent will work as expected in this case.

More Like This

  • Retrieving data ...