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

Comments align with following line indentation #2042

Closed
sisidra opened this issue Jun 23, 2020 · 0 comments · Fixed by #2066
Closed

Comments align with following line indentation #2042

sisidra opened this issue Jun 23, 2020 · 0 comments · Fixed by #2066

Comments

@sisidra
Copy link

sisidra commented Jun 23, 2020

  • Version: 2.6.1
  • Integration: IntelliJ, sbt
  • Configuration: default

Steps

Given code like this:

val res = Seq(1, 2, 3)
  // Keep odd numbers
  .filter(_ % 2 == 1)

When I run scalafmt like this:

sbt scalafmt

Problem

Scalafmt formats code like this:

val res = Seq(1, 2, 3)
// Keep odd numbers
  .filter(_ % 2 == 1)

Expectation

I would like the formatted output to look like this:

val res = Seq(1, 2, 3)
  // Keep odd numbers
  .filter(_ % 2 == 1)

Notes

Reopening issue #1446.

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

Successfully merging a pull request may close this issue.

1 participant