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

formatting: wider lists #1444

Merged
merged 1 commit into from
Jun 2, 2022
Merged

formatting: wider lists #1444

merged 1 commit into from
Jun 2, 2022

Conversation

dsyme
Copy link
Contributor

@dsyme dsyme commented Jun 2, 2022

Tweak the formatting settings

@dsyme dsyme merged commit 3aaade7 into fsprojects:main Jun 2, 2022
@@ -13,6 +13,7 @@ insert_final_newline = true
trim_trailing_whitespace = false

[*.fs]
fsharp_max_array_or_list_width=80
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nojaf It does feel to me that these defaults can be wider for F# code, likewise the other settings here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened fsprojects/fantomas#2288 to discuss this.

@@ -13,6 +13,7 @@ insert_final_newline = true
trim_trailing_whitespace = false

[*.fs]
fsharp_max_array_or_list_width=80
fsharp_max_array_or_list_number_of_items=5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fsharp_max_array_or_list_number_of_items does not do anything on its own.
You need to add fsharp_array_or_list_multiline_formatter=number_of_items for this to do anything. And please don't, I regress this setting exists in the first place.

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

Successfully merging this pull request may close these issues.

2 participants