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

Format options documentation #294

Closed
kczx3 opened this issue Feb 20, 2023 · 3 comments
Closed

Format options documentation #294

kczx3 opened this issue Feb 20, 2023 · 3 comments

Comments

@kczx3
Copy link

kczx3 commented Feb 20, 2023

Is there any documentation on the various formatter options and the corresponding values for each option? I see that at some point one_true_brace must have changed from true/false to now be -1/0/1 but I don't understand which one to pick based on my preference.

@RaptorX
Copy link
Contributor

RaptorX commented Feb 22, 2023

I dont think there is any at the moment, I faced the same issue before, some options have several choices but it is not clear what they mean.

@thqby
Copy link
Owner

thqby commented Feb 23, 2023

What are these styles called?

if 1 {
} else {
}

if 1 {
}
else {
}

if 1
{
}
else
{
}

@RaptorX
Copy link
Contributor

RaptorX commented Feb 23, 2023

• One True Brace (1TBS)
• One True Brace (1TBS) Variant: Stroustrup
• Allman

you can find more info here: https://www.wikiwand.com/en/Indent_style

The mot common ones were 1TBS, K&R and Allman for a while, not sure what the most common ones are right now.

thqby added a commit that referenced this issue Mar 12, 2023
@thqby thqby closed this as completed Mar 12, 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