Use "Configuring Rustfmt" with rust-analyzer on VS Code #14601
-
Hi! So I have tried the following settings in {
"[rust]": {
"editor.formatOnSave": true,
},
"rust-analyzer.rustfmt.extraArgs": [
"blank_lines_upper_bound = 999",
"imports_layout = \"HorizontalVertical\"",
"imports_granularity = \"Crate\"",
"overflow_delimited_expr = true",
"group_imports = \"StdExternalCrate\"",
"struct_lit_single_line = false",
],
} And the trouble is, it seems that it only knows that I am trying to define an entry What should I do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Can you use a |
Beta Was this translation helpful? Give feedback.
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 :)