You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From a recent UX study, one participant was frustrated by the reformat feature, because it didn’t always work with her programming style, i.e., not using trailing commas.
New Flutter user may not know --
optional trailing commas help the automatic formatter to insert an appropriate amount of line breaks for Flutter-style code.
Can we add a tooltip suggesting to add trailing commas?
This is a great idea. If we agree that this should be enforced for Flutter projects generally, I'd say we implement a lint rule and add it to the template for new Flutter projects. If we get even more ambitious we could implement a quick fix in the analysis server which adds the trailing commas on demand too. 👍
As a simpler alternative to lint rules, can we consider showing a tip in a dialog window when the user tried to format code that misses trailing commas? We could potentially reuse the Tip of the Day dialog in IntelliJ. WDYT? @pq
From a recent UX study, one participant was frustrated by the reformat feature, because it didn’t always work with her programming style, i.e., not using trailing commas.
New Flutter user may not know --
Can we add a tooltip suggesting to add trailing commas?
cc: @jayoung-lee @InMatrix
The text was updated successfully, but these errors were encountered: