Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation in multiline condition. #52

Open
mike-live opened this issue Jan 15, 2018 · 4 comments
Open

Indentation in multiline condition. #52

mike-live opened this issue Jan 15, 2018 · 4 comments
Milestone

Comments

@mike-live
Copy link

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.

@davidvarga
Copy link
Owner

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.

@davidvarga davidvarga added this to the v2.0alpha milestone Jan 15, 2018
@orwel1984
Copy link

orwel1984 commented Dec 21, 2018

is it possible to replace multiline by in-lining instead? how to set such a configuration ?

@davidvarga
Copy link
Owner

davidvarga commented Dec 21, 2018

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.

@davidvarga
Copy link
Owner

The in-lining has been implemented in #58 : it is disabled by default though.

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

No branches or pull requests

3 participants