Skip to content

if statements in switch case #195

@u9520107

Description

@u9520107

currently i see switch cases to be indented as such. Not sure where I did wrong.

switch(name) {
    case 1:
        break;  //doesn't align with case
    case 2:
        a = b;   //seems normal if there's a statement somewhere
    break;
    case 3:
        if (true) {
    }   //a if block breaks the indentation
    c = d;
    break;
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions