views:

125

answers:

2

On IntelliJ 9.0.2 with the latest Scala plugin, the problem is that the code formatter turns this:

  object Test
  {
    def main (args: Array[String])
    {
      if (...)
      {
        ...
      }
    }
  }

into this:

  object Test
  {
    def main (args: Array[String])
      {
        if (...)
          {
            ...
          }
      }
  }

i.e. it's indenting the blocks, and I've done my best to tell it not to in the preferences.

It's a small thing, but is slowing driving me batty :/

A: 

Yes I have the exact same problem ...! otherwise, I enjoy IntelliJ a lot.

Phil
+4  A: 

That looks like a bug, I've lodged an issue.

It's more common in Scala code to leave the brace on the previous line. This is formatted correctly by IntelliJ. But to each his own...

retronym

related questions