-
Notifications
You must be signed in to change notification settings - Fork 295
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
Support automatically fixing all incorrect types of quotes #2367
Comments
This can be done with Dart's lints 🙂 https://dart-lang.github.io/linter/lints/prefer_single_quotes.html You can enable lints in the analysis_options.yaml file and will see violations in the editor/Problems list (as well as often get lightbulb fixes for them). Let me know if you have any issues getting these working! |
Would be really great if could be added to the |
It does, though I'm not sure if There is an open issue in the SDK to support applying multiple fixes to a file at once: This could allow us to run fixes on-save, which is probably the ideal solution here. |
This was done as part of #2926. It requires using the LSP Preview (which wll become default soon) and having a new enough SDK (it's not currently available in stable, but is in the dev builds and will make its way to stable in the future). |
In some other languages like javascript and typescript, you can enforce the type of quote used for strings. It would be great if the dart extension has this feature.
The text was updated successfully, but these errors were encountered: