Skip to content

Comments

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

Open
Luna5ama wants to merge 1 commit intoDarkyenus:masterfrom
Luna5ama:indents
Open

Improved indentation for multi-line call and switch case#184
Luna5ama wants to merge 1 commit intoDarkyenus:masterfrom
Luna5ama:indents

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