GitHub

A Dart extension for Zed.

Recommended Configuration

To make the most of the Dart LSP in Zed, you can configure it to automatically organize imports and apply fixes on format.

Settings (settings.json)

Add the following to your settings.json to enable features like organizing imports on save:

{
  "languages": {
    "Dart": {
      "format_on_save": "on",
      "code_actions_on_format": {
        "source.organizeImports": true,
        "source.fixAll": true
      }
    }
  }
}

Documentation

See:

Development

To develop this extension, see the Developing Extensions section of the Zed docs.

Read the original on github.com ↗