Skip to content
guillermooo edited this page Apr 14, 2015 · 7 revisions

To format the active file...

Run Dart: Format from the command palette to have your file formatted according to the Dart style guide.

See the Keyboard Shortcuts topic for details.

Note: Currently, two implementations of dartfmt are available. One is included in the Dart SDK. The other one, more complete, is included in the dart_style package, and must be installed separately using pub global:

$ pub global activate dart_style