Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default formatter for Dart explicitly #4050

Closed
DanTup opened this issue Jul 7, 2022 · 0 comments
Closed

Set default formatter for Dart explicitly #4050

DanTup opened this issue Jul 7, 2022 · 0 comments
Labels
in editor Relates to code editing or language features is enhancement
Milestone

Comments

@DanTup
Copy link
Member

DanTup commented Jul 7, 2022

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.

@DanTup DanTup added is enhancement in editor Relates to code editing or language features labels Jul 7, 2022
@DanTup DanTup added this to the v3.46.0 milestone Jul 7, 2022
@DanTup DanTup closed this as completed in 21246c6 Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in editor Relates to code editing or language features is enhancement
Projects
None yet
Development

No branches or pull requests

1 participant