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

More options for empty lines between types #255

Closed
gene-pavlovsky opened this issue Nov 5, 2018 · 0 comments
Closed

More options for empty lines between types #255

gene-pavlovsky opened this issue Nov 5, 2018 · 0 comments
Labels
emptylines missing or incorrect empty line enhancement New feature or request

Comments

@gene-pavlovsky
Copy link

gene-pavlovsky commented Nov 5, 2018

The emptyLines.betweenTypes setting gives all-or-nothing power.

It would be nice if there was some flexibility (e.g. wrapping options offer a lot of customization via rules/conditions, sameLine options allow moderate customization since they offer separate settings for non-block bodies of various control structures). Same can be said in general for lineEnds, whitespace and some other emptyLines options.

Sample desired Output

typedef Point2D = {x: Int, y:Int}
typedef Point3D = {x: Int, y:Int, z:Int}

class A {
    ...
}

class B {
    ...
}
@AlexHaxe AlexHaxe added enhancement New feature or request emptylines missing or incorrect empty line labels Nov 5, 2018
AlexHaxe added a commit to AlexHaxe/haxe-formatter that referenced this issue Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emptylines missing or incorrect empty line enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants