You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding ocamlformat 0.26.1, there is an option for wrapping collections: break-collection-expressions = wrap.
As far as I can tell there is no analogous option for wrapping records. E.g., this
{ a: string; b: string; c: int; ... go until max column then wrap...
; h: blah; ... go until max column then wrap ...
; z: int }
Always goes to this if it is past the column limit.
{ a: string
; b: string
; c: int
...
; z: int }
Is there an option that I'm missing, and if not, is there a reason that you can wrap collections but not records?
(Sometimes I will put an [@ocamlformat "disable"] tag on the record and format it myself if it is quite long, but I'm wondering if there is an automatic way.)
The text was updated successfully, but these errors were encountered:
Regarding ocamlformat 0.26.1, there is an option for wrapping collections:
break-collection-expressions = wrap
.As far as I can tell there is no analogous option for wrapping records. E.g., this
Always goes to this if it is past the column limit.
Is there an option that I'm missing, and if not, is there a reason that you can wrap collections but not records?
(Sometimes I will put an
[@ocamlformat "disable"]
tag on the record and format it myself if it is quite long, but I'm wondering if there is an automatic way.)The text was updated successfully, but these errors were encountered: