I work with Scala in IntelliJ IDEA 2020.3. If I run the console in the sbt shell it works fine, but the code is collapsed and cannot be seen. The output in the window is: