Skip to content

Use "Configuring Rustfmt" with rust-analyzer on VS Code #14601

Closed Answered by mirumirumi
mirumirumi asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the response!

After much experimentation based on the advice I received, I found that I should not put spaces in the middle or escape ".
The following code is it works :)

    "rust-analyzer.rustfmt.extraArgs": [
        "--config", "blank_lines_upper_bound=999,imports_layout=HorizontalVertical,imports_granularity=Crate,overflow_delimited_expr=true,group_imports=StdExternalCrate,struct_lit_single_line=false",
    ],

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mirumirumi
Comment options

Answer selected by mirumirumi
@lnicola
Comment options

lnicola Apr 18, 2023
Collaborator

@nulliver
Comment options

@lnicola
Comment options

lnicola Nov 27, 2024
Collaborator

@nulliver
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants