Skip to content

Configuration of dart formatting not working #20

@damolator

Description

@damolator

I've changed the formatting using the plugin but its not picking up the changes. I've set the indent to 8 to test it, but its still an indent of 2. (see image).

I've also tried to use dart_format with json, but i'm getting an error. Theres no documentation on the command line json format. I've tried multiple ways of inserting quotes, double quotes, escaped quotes, no quotes, etc.

dart_format file.dart --config="{'IndentationSpacesPerLevel':3 }"
Error in dart_format: FormatException: Unexpected character (at character 2)
{'indentationspacesperlevel':3 }

Note: My OS is Windows 11, and i'm using Terminal when running commands

image

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions