A formatter for Dart.
Like dartfmt.
But better ;)
Because it's configurable.
Press Ctrl
+Alt
+,
to format your code.
Please note!
You have to install the dart_format package on pub.dev package to use this extension!
Basically just call this from the command line:
dart pub global activate dart_format
Beta version!
Formatting the currently selected file already works.
Formatting multiple files comes soon.
This extension:
Source code: DartFormatVSCodePlugin on GitHub
Problems and feature requests: GitHub Issues for DartFormatVSCodePlugin
External dart_format package:
Source code: dart_format on GitHub
Problems and feature requests: GitHub Issues for dart_format
Also available as a plugin for JetBrains (Android Studio, IntelliJ IDEA, ...)
DartFormat plugin at the JetBrains Marketplace