Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format for long method definitions #117

Closed
baugarten opened this issue Aug 25, 2014 · 1 comment
Closed

Format for long method definitions #117

baugarten opened this issue Aug 25, 2014 · 1 comment

Comments

@baugarten
Copy link

Hey team,

I recently installed scalariform as a plugin for Intellij13. It looks great so far -- my one question is if there is any way to format long method definitions like...

def callMeMaybe(
  number: Option[String],
  typeOfPhone: String
  hoursOfAvailability: Range = 9.to(12)
)(
  areaCodeFilter: String => Boolean
): Boolean = {
  ...
}

By default, they look like

  def callMeMaybe(
    number: Option[String],
    typeOfPhone: String,
    hoursOfAvailability: Range = 9.to(12))(
      areaCodeFilter: String => Boolean): Boolean = {
    false
  }
@jkinkead
Copy link
Collaborator

jkinkead commented Mar 7, 2016

danglingCloseParenthesis=Force does this (it's also currently the default).

@jkinkead jkinkead closed this as completed Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants