Skip to content

Set default formatter for Dart explicitly #4050

Closed

Description

@DanTup

The install instructions for some other formatters (for ex. Prettier) encourage setting it as the global default formatter:

"editor.defaultFormatter": "esbenp.prettier-vscode",

Prettier cannot format Dart files so trying to format produces fails with a message. We can set the default for Dart explicitly so that it will be used first. Users can still override this by setting a default formatter in the "[dart]" section of their configuration.

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    in editorRelates to code editing or language features
    on Jul 7, 2022
  2. added this to the v3.46.0 milestone on Jul 7, 2022
  3. added a commit that references this issue on Sep 2, 2025
    21246c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions