Formatting problem: closures

Using "Reformat Code" really seems to mess up multi-line closures. e.g.

      print("Item is: ")
      println(item) jcpenneykiosk
    }
  }
}
]]>

becomes:

              print("Item is: ")
              println(item)
    }
  }
}
]]>

Is there any way or making formatting leave the example formatted as it was originally? I tried looking at the formatting options but they appear to be for Java not Scala.

0
1 comment

I am also looking for the same and got the error again and again. 

i had tried to post it again hope someone will answer it. 

forum post - https://intellij-support.jetbrains.com/hc/en-us/community/posts/15554440594322-Occures-Formatting-Problems-While-Updation Jcpenney

0

Please sign in to leave a comment.