When formatting multi-line statements in IntelliJ IDEA, can statements be aligned?

I am looking at options in IntelliJ IDEA 12, and I cannot allow this. So please help me stop wasting time on this.

This is the code from my Build.scala:

val logging = Seq( "ch.qos.logback" % "logback-classic" % "1.0.13", "org.slf4j" % "slf4j-api" % "1.7.5", "com.weiglewilczek.slf4s" % "slf4s_2.9.1" % "1.0.7" ) 

I would like it to look like this:

 val logging = Seq( "ch.qos.logback" % "logback-classic" % "1.0.13", "org.slf4j" % "slf4j-api" % "1.7.5", "com.weiglewilczek.slf4s" % "slf4s_2.9.1" % "1.0.7" ) 

And I prefer to automatically create this using code formatting. In my (unreliable) memory, this used to work for me in IntelliJ IDEA, but I can’t find which options to enable.

Do you know where this option is hiding?

+6
source share
1 answer

IDEA has many multi-line options, but none of them affect this syntax.

This feature is not in IDEA 12 . The only option I could think of was to manually format the code in this way. You should vote for this feature request and look forward to IDEA 13.

+1
source

Source: https://habr.com/ru/post/946482/


All Articles