I want to use nightly rustfmt in vscode with rust-analyzer.
What do I write in setting.json.
I don't use vscode often, so I don't know if this has changed. But a while back I put this in my settings.json, and I believe it worked back then:
"rust-analyzer.rustfmt.extraArgs": [
"+nightly"
],
Can I use unstable-features with this setting ?
Yes, as long as you also configure them as described below.
https://rust-lang.github.io/rustfmt/?version=v1.8.0&search=
Each configuration option is either stable or unstable. Stable options can always be used, while unstable options are only available on a nightly toolchain and must be opted into. To enable unstable options, set
unstable_features = trueinrustfmt.tomlor pass--unstable-featuresto rustfmt.
Thank you.
I understod.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.