davidvarga / davidvarga/MBeautifier

Indentation in multiline condition.

Open
#52 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
MATLAB
Stars
519
Forks
80
PR merge metrics
No merged PRs in 30d

Description

I assume that in the case of a condition, it is better to align to condition on previous line.
I think this code:
```
if a + b > 0 && ...
a * b > 0
a = b;
end
```
better than generated by MBeautifier:
```
if a + b > 0 && ...
a * b > 0
a = b;
end
```

So, this is true for `while` too.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.