Custom Formatting in VS Code

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/dartlang

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • GitHub repo Dart-Code

    Dart and Flutter support for VS Code

    I'm not aware of any other formatters for Dart. There's an open issue about more flexible formatting at https://github.com/Dart-Code/Dart-Code/issues/914 but it's not something being actively worked on. If someone was to create their own formatter I've offered in that thread to provide some pointers for wrapping it up into a VS Code extension (the Dart extension already supports disabling its own formatter, although VS Code now allows you to more easily select a different formatter).

  • GitHub repo dart_style

    An opinionated formatter/linter for Dart code

    The standard Dart extension only supports formatting using the SDK-supplied formatter (dart_style) which (by design) is not configurable (although it can be turned on/off with the dart.enableSdkFormatter setting).

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts