Skip to content

Feature Request: remove line before the content of a bracketless if/else statement #979

@Infinite-3D

Description

@Infinite-3D

In my opinion, code like this

if (condition)
    
    doSomething();
else

    doSomethingElse();

for (int i = 0; i < 10; i++)

    total += i;

should be formatted as

if (condition)
    doSomething();
else
    doSomethingElse();

for (int i = 0; i < 10; i++)
    total += i;

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions