I created a new project and VS Code condenses any trailing commas unless line lengths are very long. This is a new behaviour. Have looked all over the internet, reinstalled, deleted cache files etc. No differences in any settings file at the user or workspace level. Both same versions of flutter and dart. Both same extensions (only flutter and dart). No difference in analyzer file... so I'm completely lost. Is this a new VS Code thing? It is very annoying as I'm trying to work on UI layouts and save condenses things to one line.
Add the following to analysis_options.yaml in the Flutter project.
formatter:
trailing_commas: preserve
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With