Hey, I spend some time yesterday to add an MaxWidt...
# ktfmt
r
Hey, I spend some time yesterday to add an MaxWidth override to the IDEA plugin: https://github.com/facebook/ktfmt/pull/492 Waiting for the maintainers to pick it up 😊 It seems that this particular setting is a dealbreaker for many. I can imagine that the plugin settings could get more detailed. I see this one option as a first step. Any feedback is welcome!
👍 1
g
Nice work :) Regarding more configuration options: I think line width is debatable, but lack of configurability is a feature imo - just buy into a standard and spend less time debating over formatting rather than solving actual problems. Dart did a really great job by providing a formatter together with the language btw. I wish Jetbrains had done something similar for Kotlin...
👍 2
r
just buy into a standard and spend less time debating over formatting
Yes! I wish. Here I blame people who added the options to Gradle. The project I'm at used it to set width to 120. And now I'm the one debating formatting… 🤷
g
That's a good point. As I said, line width is probably debatable, the last time I was using dartfmt line width was the only configurable option too... So I guess there is no harm in adding it as an option to the plugin as well. It still should be made configurable on the cli too to offer a consistent feature set