Format problem of scala string interpolation

Hi,

I'm using IDEA 14.0.3 with Scala plugin 1.4, and I encountered a format problem of scala string interpolation.
I wrote some code like :

s"""|$buffer1Type $buffer1Name = new $buffer1Name()
    |$
buffer2Type $buffer2Name = new $buffer2Name();""".stripMargin


The code will be formated like follow :

s"""|$buffer1Type $buffer1Name = new $buffer1Name()
                                                   |$
buffer2Type $buffer2Name = new $buffer2Name();""".stripMargin


Is there some way to fix the format problem and make a multi line string aligned with marginChar ?

2 comments
Comment actions Permalink

Cannot reproduce this unfortunatelly.

Please try Scala Plugin v2019.1.8

-1
Comment actions Permalink

I have 2019.1.8 and I still see the bug

Are you indenting with \t? I always see the bug when I'm indenting with tab.

I never see the bug when I indent with "space"

0

Please sign in to leave a comment.