Skip to content

BasicFormat should automatically determine indentation level of a file #1474

Open
@bnbarham

Description

@bnbarham

Description

We could take a pretty good guess on the indentation of the file.

There's a few ways we could do this. One would be to grab the indentation up to content in each line, then divide that by common indents and pick the closest match. This is probably good enough, but we can always get more accurate by eg. skipping multiline strings, or rather than an average, instead look at how many lines fit that indentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BasicFormatIncorrect formatting by BasicFormatenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions