Each time I enter a parameter, a comma is generated. I need to manually delete the last comma to keep the code clean. Obsessive-compulsive disorder can't stand the last extra comma.
@duweigang what IDE are you using?
@jonahwilliams Android Studio ( 3.0.1)
I'd like to know where to enable automatic trailing commas insertion in IntelliJ ;-)
Maybe @devoncarew would know?
The analysis server automatically inserts it based on the context of the surrounding code. Currently, there's no option to disable this.
@devoncarew Does flutter include this option in subsequent updates?
@devoncarew do you think anything will be done about that?
Should the issue be moved, closed, ...?
We don't have an option to disable it. We have discussed adding project based configuration for the analysis server into the analysis_options.yaml file. This could control things like appending trailing commas, and generating optional new and consts when code completing or for refactorings that generate code.
We have as not added this configuration behavior as we're not sure the additional complexity is a net win. More user feedback - in the form of more use cases, or generally broad support for a feature - would definitely be helpful.
These trailing commas are slowly killing me from the inside... Please help...
Most helpful comment
These trailing commas are slowly killing me from the inside... Please help...