I understand long parameter lists are generally bad, but can I do so without manually navigating before each argument and placing line breaks? I don't need to format every method in such a way, something like an intention for parameter lists would be great.
Bakery(Baker baker, Policy policy, Cookbook cookbook, Schedule schedule) {}
Bakery(
Baker baker,
Policy policy,
Cookbook cookbook,
Schedule schedule
) {}
Under Settings > Editor > Code Style > Java
, under the "Wrapping and Braces" tab, select the "Wrap always" option for "Method declaration parameters".
For added perks, you can even tick the "New line after '('" option to get it to appear similar to how you have it laid out in your question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With