score:0
by default verticalmultiline.newlineafteropenparen
is set to false
. by adding the following lines to your scalafmt file you can override this config
continuationindent.defnsite = 2
verticalmultiline.atdefnsite = true
verticalmultiline.aritythreshold = 2
verticalmultiline.newlineafteropenparen = true
please refer link for examples.
Source: stackoverflow.com
Related Query
- scalafmt class, methods params intendation
- rely on methods of case class in trait
- Companion class requires import of Companion object methods and nested objects?
- Does extending a class in scala with constructor params add vals (fields) to the class?
- scala case class put methods in companion object?
- Java/Scala reflection: Get class methods in order and force object init
- Why can't I access private class methods in the class's companion object in Scala?
- Scala: Is there a way for a parent class to access methods defined only by children?
- In Scala, combine objects methods as class methods
- Why are Scala class methods not first-class citizens?
- Scala inherit from class with static methods
- Scala type class pattern and generic methods
- How to transfer type parameter through class methods in scala?
- Is it possible to implement (in Scala) a polymorphic wrapper class that automatically implements the methods of the wrapped class?
- Scala: value class X is added to the return type of its methods as X#
- javadoc: show also descriptions of methods from parent class
- Why Parent class is allowing to Child class to make Parent class's methods as abstract in Child class?
- Can't generate unpickler in class hierarchy when passing object params to parent
- Extending a class with many implementation that each have main methods in Scala
- Scala traits using generics and case class methods
- Are there such thing as class methods in Scala?
- Adding params to Apache Spark's abstract Evaluator class
- Type Class Pattern alternative for enriching ADT with methods in Scala
- How to enrich a Java library class that has static methods (aka enrich an object in Scala)?
- Unit testing class that extends a trait - how do I mock and stub methods in the trait?
- Use shapeless to derive query string params from case class
- Force inheriting class to implement methods as protected
- How to "extend" factory methods when extending class with companion object with factory methods
- Update view params in Java class / play2
- scala override methods in child object of class
More Query from same tag
- Higher kinded type and Tagless final
- In which case can Scala 2.10.0 compiler be faster or slower than 2.9.2?
- Scala fails to initialize a val
- cons operator in case statements in Scala
- Apache Spark: how to call UDF over dataset in Java?
- What's the difference between using DatabaseConfig and Database in Slick?
- Out Of Memory Error with larger file uploads
- https4s how to make a POST call to a REST web service
- Crypto.encryptAES() throws InvalidKeyException
- How to clone a case class instance and change just one field in Scala?
- Scala: Casting results of groupBy(_.getClass)
- argonaut - separating failures and successes when extracting List[A]
- Scala inherit parameterized constructor
- Get case class annotations with reflection?
- java.lang.StackOverflowError when trying to optimize Java+Scala with ProGuard
- scala: append List using foldRight
- Akka Stream return object from Sink
- Scala String trimming by a set of characters
- How to define a variable that can be either Array or List
- Making a nested if statement more functional in scala
- Better way to convert a string field into timestamp in Spark
- To which language is Scala most similar from a functional programming perspective?
- Split an Option[String] into (Option[String], Option[String])
- Customising composition of Future, Either and Writer in Scalaz
- Long running processes inside service invoked from actor
- Scala convert multi-layered json to multi-layered map
- "private[syntax]" in Scala
- How to make scalaz.Tagged work with class class primitive attributes?
- RequestScoped in Play 2.7
- How to convert Range to SortedSet in Scala?