MBeautifier
MBeautifier copied to clipboard
Indentation in multiline condition.
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.
The problem here is the same that with #51 : it relies on Smart Indent functionality of editor. Maybe in v2.0alpha this can be implemented.
is it possible to replace multiline by in-lining instead? how to set such a configuration ?
The inlining of continous lines (...) would be theoreti cally possible to be implemented (currently it is not implemented). I open a separate card for it.
EDIT: Done - #58.
The in-lining has been implemented in #58 : it is disabled by default though.