Is IDEA or one of its plugins capable of aligning code to special characters?
I mean so that the code
Map(
\'name -> \"Peter\",
\'age -> 27,
You can align case statements, however:
value match {
case s: String => Some(java.lang.Long.parseLong(s))
case bi: BigInt => Some(bi.longValue)
case _ => None
}
Like so:
value match {
case s: String => Some(java.lang.Long.parseLong(s))
case bi: BigInt => Some(bi.longValue)
case _ => None
}
Use option:
Settings -> Code Style -> Scala => Wrapping and Braces -> 'match' and 'case' statements -> Align in columns 'case' branches