Reputation: 1578
Is there a way, in VS Code, to make the autocompleted widget arguments go on a new line?
Bad:
Column(children: [])
Good:
Column(
children: []
)
I guess it has something to do with the dart_style's formatter (?)
Upvotes: 1
Views: 68
Reputation: 31299
You can add a comma after the last argument to tell the Dart formatter that you want the argument to be split across multiple lines:
Column(
children: [],
);
(This is something that might change in the future: https://github.com/dart-lang/dart_style/issues/1253)
Upvotes: 2