+2

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

Simon Morgan 13 років тому оновлено Aleksandar Prokopec 12 років тому 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.