Skip to content

Reformat Code with dart not working #8654

@nerygarciamx

Description

@nerygarciamx

when I click REformat code, it moves everything into one line.
I have been trying to fix it for 3 days now. I tried everything. changing lenght to 120, 123, 80
this other option: add inside analysis_options.yaml file inside the project '
formatter:
trailing_commas: preserve
changes in VScode, and nothing.
when I add the commas, and select "reformat code with dart format" it deletes the commas and leave everyhting in one line.
If I indent the code manually. when I do reformat, it moves everything to one line.
I am using android studio otter 2 feature drop
Dart 3.10.3
please help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions