I have a for comprehension like this:
private[helper] def myMethod(name: String, index: Long) = {
for {
result1 <- httpUtilities.getLowIndexes(index)
result2 <- myFacade.queryMaterial(result1)
result3 <- httpUtilities.someMethod(result2)
} yield result3
}
What I wanted is to align special character <- in columns so that above code is transformed to :
private[helper] def myMethod(name: String, index: Long) = {
for {
result1 <- httpUtilities.getLowIndexes(index)
result2 <- myFacade.queryMaterial(result1)
result3 <- httpUtilities.someMethod(result2)
} yield result3
}
I can do the same for match case statements in Settings -> Code Style -> Scala => Wrapping and Braces -> 'match' and 'case' statements -> Align in columns 'case' branches in Intellij but how to do it for <- character inside for-comprehension.