movebit / movefmt

Other
5 stars 4 forks source link

Wraps a portion of the fields #10

Closed BriungRi closed 5 months ago

BriungRi commented 5 months ago

In other formatters, I tend to see that formatters either keep a function invocation as a single line or break it up every argument into its own line. Feels strange to see it break a function invocation on wherever the column width limit is

robinlzw commented 5 months ago

This is a matter of personal preference, as different programmers have different views. Some developers prefer to wrap lines after exceeding the line width, for example, having 3 parameters in the first line and 2 parameters in the second line. This approach saves the number of lines in the source code. We will make adjustments in the next version to meet your expectations, only allowing function call statements to either be on a single line or have each parameter on its own line in a multi-line style.

robinlzw commented 5 months ago

fixed at https://github.com/movebit/movefmt/commit/2223c0d4ec6b65d9b23787dcf2d5b8e80ef70227