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

Long and cumbersome unfolding of arrays #787

Open
vladdez opened this issue Dec 4, 2023 · 2 comments
Open

Long and cumbersome unfolding of arrays #787

vladdez opened this issue Dec 4, 2023 · 2 comments

Comments

@vladdez
Copy link

vladdez commented Dec 4, 2023

This was marked as a problem:
image
This was a suggestion:
image

Is it possible to avoid such long suggestions? Doesn't look like very stylish and useful. It is more a false alarm

@domluna
Copy link
Owner

domluna commented Dec 5, 2023

https://domluna.github.io/JuliaFormatter.jl/dev/#join_lines_based_on_source and increasing the margin might be what you want. the default style breaks this up into 1 per line if it's over the margin.

@vladdez
Copy link
Author

vladdez commented Dec 6, 2023

Thanks! That is really helpful.
Do you know how to use smth like format_file("test_complexplots.jl", join_lines_based_on_source = true) in Julia Action?
Any ways to specify arguments?

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

2 participants