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

Does this tool provide a way to insert new lines after every semicolon? #56

Closed
nbro opened this issue Mar 14, 2018 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@nbro
Copy link

nbro commented Mar 14, 2018

I sometimes see pieces of code of the form

figure; plot(...)

Honestly, I don't like to have more than one command per line. Does this tool provide a way to insert new lines after every semicolon? If yes, what is the option? If not, do you plan to do it?

@davidvarga
Copy link
Owner

Hi,

it was not planned for the current implementation - I'm doing currently a brand new one, in that one it is planned from the beginning (I also don't like multiple statements per line, because it ruins the readability a lot).

As it is requested, it can be added really simply. I will do it soon.

@davidvarga
Copy link
Owner

The feauture has been added. You can control it through the "AllowMultipleStatementsPerLine" rule (it defaults to false, therefore the default configuration will already break multiple statements into new lines).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants