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
?
Please sign in to leave a comment.
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:
Best regards,
Alexander Podkhalyuzin.
Aesthetically, I think it would look better to align the 'with' keyword underneath the 'extends' keyword.
I created an issue about all alignments. http://youtrack.jetbrains.net/issue/SCL-3536
Best regards,
Alexander Podkhalyuzin.