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

Improved indentation for multi-line call and switch case #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Luna5ama
Copy link

@Luna5ama Luna5ama commented Jul 9, 2023

Multi-line call, aka. continuation indent in IDEA setting

Before:

vec3(
1.0,
2.0,
3.0
)

After, with continuation indent of 8 (default):

vec3(
        1.0,
        2.0,
        3.0,
)

Switch case

Before:

switch (i) {
    case 0:
    foo();
    break;
    case 1:
    bar():
    break;
    default:
    baz();
    break;
}

After:

switch (i) {
    case 0:
        foo();
        break;
    case 1:
        bar():
        break;
    default:
        baz();
        break;
}

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

Successfully merging this pull request may close these issues.

1 participant