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

dart format should preserve vertically-aligned formatting #1252

Closed
chipweinberger opened this issue Aug 22, 2023 · 1 comment
Closed

dart format should preserve vertically-aligned formatting #1252

chipweinberger opened this issue Aug 22, 2023 · 1 comment

Comments

@chipweinberger
Copy link

chipweinberger commented Aug 22, 2023

Dart format should not make carefully considered indentation harder to read.

In practice I think comments that are vertically aligned should be ignored, or there should be some opt-out.

Potentially, vertically aligned comments should be the default.

before formatting:

enum BmAdapterStateEnum {
  unknown,      // 0
  unavailable,  // 1
  unauthorized, // 2
  turningOn,    // 3
  on,           // 4
  turningOff,   // 5
  off,          // 6
}

after formatting:

enum BmAdapterStateEnum {
  unknown, // 0
  unavailable, // 1
  unauthorized, // 2
  turningOn, // 3
  on, // 4
  turningOff, // 5
  off, // 6
}
@srawlins
Copy link
Member

Duplicate of #48

@srawlins srawlins marked this as a duplicate of #48 Aug 22, 2023
@munificent munificent closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
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

3 participants