-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Switch expressions have extra line breaks #1282
Comments
The lines with exceptions end up long enough that they break. Right now when switch arms break, the first break occurs before the |
Yup, I agree the exception lines should break, it's just the break being before the return s switch {
"some very very long string"
=> "something else very very long",
} I feel like I'd still prefer the arrow on the same line though 🤔 return s switch {
"some very very long string" =>
"something else very very long",
} |
CSharpier has adopted operators at the beginning of lines as opposed to the end, but after saying that I realize that it seems the other instances of public class ClassName
{
public string ShortPropertyName =>
"einairenst_____________________________________________________________________";
public string LongUglyMethod() =>
"einairenst_____________________________________________________________________";
public void DoStuff()
{
CallMethod(o =>
DoThingWith_______________________________________________________________________________(
o
)
);
}
} |
Other instances of `=>` stay on the line and break after, this seems to be the only instance that breaks before `=>` and should be consistent with the others. closes belav#1282
There appears to be an extra line break in nested switch expressions, as well as for all default branches
Input:
Output:
Expected behavior:
The text was updated successfully, but these errors were encountered: