Stop IntelliJ IDEA Scala worksheet from removing blank lines
<p>Every time a Scala Worksheet in IntelliJ IDEA is ran, some blank lines are automatically removed from the code. Is there a setting to stop this behavior?</p>

<p>For example:</p>

<pre><code>case class Person(id: Int, name: String)

case class Purchase(product: Int, person: Person)
</code></pre>

<p>turns into:</p>

<pre><code>case class Person(id: Int, name: String)
case class Purchase(product: Int, person: Person)
</code></pre>