Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eggnstone/dart_format


https://github.com/eggnstone/dart_format

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# dart_format

[![Build](https://github.com/eggnstone/dart_format/actions/workflows/dart.yaml/badge.svg)](https://github.com/eggnstone/dart_format/actions)
[![pub package](https://img.shields.io/pub/v/dart_format.svg)](https://pub.dartlang.org/packages/dart_format)
[![GitHub Issues](https://img.shields.io/github/issues/eggnstone/dart_format.svg)](https://github.com/eggnstone/dart_format/issues)
[![GitHub Stars](https://img.shields.io/github/stars/eggnstone/dart_format.svg)](https://github.com/eggnstone/dart_format/stargazers)

## 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
Also available as an extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=eggnstone.DartFormat

## To run dart_format from the command line:
- Follow the instructions at https://pub.dev/packages/dart_format/install

```
Usage: dart_format [args]
[ ...] Formats the specified dart file(s)
--config= Specifies the configuration
--dry-run, -dr Writes output to ".formatted.dart"
--errors-as-json Writes errors as JSON to stderr
--log-to-console Logs to console
--pipe Formats stdin and writes to stdout
--skip-version-check Skips version check on start-up
--web[service] Starts in web service mode
```