Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
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).
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).
Related posts
- why vscode slow, even when my specs are decent?
- Is there a VSCode extension that turns on closing labels for Dart/Flutter on items with curly braces based on the number of lines within them (functions, loops, switches, classes, etc.)?
- Creating a VSCode Extension IN Flutter, not for Flutter
- Need help with a simple extension
- Any idea why my theme is suddenly changing every time I switch files?