How to configure formatting rules in Google Dart Editor

208 Views Asked by At

I want configure the Dart Editor for the formatting a such source code without a breaking the first line on parameter list.

Result of formatting.

String _expand(
    List fragments, Map<String, MacroDefinition> definitions, String defaultValue, Set<String> processed) {
  //
}

Is this possible in Dart Editor?

String _expand(List fragments, Map<String, MacroDefinition> definitions, String defaultValue,
    Set<String> processed) {
  //
}

P.S.

The above source code formatted with a 120 characters per line.

1

There are 1 best solutions below

8
Günter Zöchbauer On

You can't configure anything but the line length in DartFormat. It was a deliberate decision to not support formats which deviate from the default format.