IntelliJ: foreach Live Template code formatting
<p>In IntelliJ idea when I insert the foreach live template it will put newline after ':' so it will look like this:</p>

<pre><code>  for ( :
    ) {

    }
</code></pre>

<p>I want to have the for statement on one line like this:</p>

<pre><code>  for ( : ) {

  }
</code></pre>

<p>I tried to change my code formatting preferences, but could not figure out what setting influences this particular case.</p>

<p>So my question is how to set code style options to achieve the desired behavior?</p>