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

Preserve dangling brackets in parameter lists #98

Closed
paddymahoney opened this issue Dec 19, 2013 · 5 comments
Closed

Preserve dangling brackets in parameter lists #98

paddymahoney opened this issue Dec 19, 2013 · 5 comments

Comments

@paddymahoney
Copy link

Take the class definition:

case class User(id: Long, name: String, age: Int, address: String)

I would like to format this as :

case class User(
id: Long,
name: String,
age: Int,
address: String
)

When scalariform is run with 'Preserve dangling close parenthesis', it reformats this to:

case class User(
id: Long,
name: String,
age: Int,
address: String)

This feature is requesting an option so that when this case class is scalariformed, the bracket is not brought up to the preceeding line - either 'Preserve dangling close parenthesis' be made to apply to parameter lists in functions and classes, or a new option 'Preserve dangling closed parenthesis in classes and functions' be added.

@ConnorDoyle
Copy link

+1

1 similar comment
@frozenspider
Copy link

+1

@hzwaal
Copy link

hzwaal commented Sep 11, 2015

+1

1 similar comment
@joprice
Copy link

joprice commented Nov 1, 2015

+1

@godenji
Copy link
Collaborator

godenji commented Jul 13, 2017

use danglingCloseParenthesis=Force in scalariform 2.0+

@godenji godenji closed this as completed Jul 13, 2017
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

6 participants