Skip to content

Format on save in VS Code ignores rustfmt.toml #6973

@Benlitz

Description

@Benlitz

Hi,

It seems that when I save a file in VS Code, it ignores the rustfmt.toml file and applies the default configuration for formatting. I just added a rustfmt.toml file with only max_width = 160 in it. When I save a file, it clearly applies the default 100 character width. If I run rustfmt [file] in a console it works properly.

Note: I'm working in a workspace with multiple crates in it, and some other crates have their own rustfmt.toml. I doubt this is related to the problem but still mentioning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions