"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?
Put a rustfmt.toml at the project root (rust-analyzer respects it), and use rustfmt settings:
max_width = <number you'd like>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With