Add Arguments to dartfmt in VSCode

532 Views Asked by At

I am currently using vscode for flutter and dart development and wanted to increase line length from 80 to 120 characters (which can be achieved by dartfmt -l 120). However, there does not seem to be a way to directly set that in the VSCode Flutter and Dart Extension. Is it possible to do this?

1

There are 1 best solutions below

1
jamesdlin On BEST ANSWER

The VS Code Dart extension (version 3.18.1 as of writing) provides a "Dart: Line Length" option (dart.lineLength).