"rust-analyzer.checkOnSave.command": "clippy",
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true
},
I have these rust settings in vscode. They work fine for formatting, but the line length is shorter than I'd like. Is there a way I can adjust the max line length?
CodePudding user response:
Put a rustfmt.toml at the project root (rust-analyzer respects it), and use rustfmt settings:
max_width = <number you'd like>