Formating "with" keyword on next line

Is there any setting for formating code so that "with" on next line is aligned as in the following code:

trait Point {
  var x, y: Int
}


trait Color {
  var r, g, b: Int
}


class MyPoint extends Point
                 with Color // <= should be aligned


?
3 comments
Comment actions Permalink

Settings -> Code Style -> Wrapping and Braces -> Extends/Implement list -> Align when multiline

However "with" keyord will be aligned with Point. To get better code I can suggest you to use with on previous line:

trait Point {   var x, y: Int } trait Color {   var r, g, b: Int } class MyPoint extends Point with                       Color {    }



Best regards,
Alexander Podkhalyuzin.
0
Comment actions Permalink

Aesthetically, I think it would look better to align the 'with' keyword underneath the 'extends' keyword.

0
Comment actions Permalink

I created an issue about all alignments. http://youtrack.jetbrains.net/issue/SCL-3536

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.