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

Allow brackets to be put on the same link as case statement (and potentially allow "break" to be on the same link as the closing bracket) #624

Open
johannesrld opened this issue Apr 10, 2024 · 0 comments

Comments

@johannesrld
Copy link

no matter what I try dprint always formats something like this

switch (foo) {
  case 1: {
  } break;
  case 2: {
  } break;
  default: {
  }
}

into

switch (foo) {
  case 1: 
    {
    } 
    break;
  case 2: 
    {
    } 
    break;
  default: 
    {
    }
}

it would be nice to have an option to have bracketed case statements formatted like the first example

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

1 participant