dart_format 1.0.1
dart_format: ^1.0.1 copied to clipboard
A formatter for Dart. Like dartfmt. But better ;) Because it's configurable.
dart_format #
A formatter for Dart. #
Like dartfmt.
But better ;)
Because it's configurable.
Also available as a plugin for Jetbrains (Android Studio, IntelliJ IDEA, ...)
https://plugins.jetbrains.com/plugin/21003-dartformat
Plugin source: https://github.com/eggnstone/DartFormatJetbrainsPlugin
To run dart_format from the command line: #
- Put
C:\Users\<user>\AppData\Local\Pub\Cache\bin
/~/.pub-cache/bin
in your path. - Run
dart pub global activate --source path .
Usage: dart_format [args]
<dart file> [<dart file> ...] Formats the specified dart file(s)
--config=<config JSON> Specifies the configuration
--dry-run, -dr Writes output to "<original filename>.formatted.dart"
--errors-as-json Writes errors as JSON to stderr
--log-to-console Logs to console
--log-to-temp-file Logs to a temp file ("dart_format_<date>_<time>_<pid>.log" in the system temp directory)
--pipe Formats stdin and writes to stdout
--web[service] Starts in web service mode