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

Prevent line break when we have single line into a block. #998

Closed
arashbahreini opened this issue Nov 9, 2023 · 1 comment
Closed

Prevent line break when we have single line into a block. #998

arashbahreini opened this issue Nov 9, 2023 · 1 comment

Comments

@arashbahreini
Copy link

Lets say I have below code

if (condition) return true

Csharpier turn this line into

if (condition) 
    return true

Is there any way or configuration that keep my IFs in a single line when they have single line?

@belav
Copy link
Owner

belav commented Nov 9, 2023

No, CSharpier is opinonated and does not provide options for the sytle of formatting. It follows Prettier's Option Philosophy

@belav belav closed this as completed Nov 9, 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

2 participants