+2

Scala code indents when there's an open parenthesis in a string

Simon Morgan 8 years ago updated by Aleksandar Prokopec 7 years ago 1
Create a new Scala file and enter the following:
println("(")

When you hit enter at the end of the line, the new line is indented when it shouldn't be.

+1

Also, note that typing things like:


    try {

      |

    }


and then moving the cursor (`|`) down in the next line and starting to type catch:


    try {

      

    } catch


indents the line with the `catch` by adding an additional `tab`, when it really shouldn't.