Config `rust-analyzer` to use the new formatting style
Author: rami3lCreated Sep 11, 2026Updated Sep 12, 2026
Labelsenhancement
OTOH to facilitate use in IDEs so that we can never worry about reorganizing imports, I'm discovering the feasibility of adding a recommended
rust-analyzerconfig that looks like so:rustfmt = { extraArgs = { "+nightly", "--config-path=.rustfmt.unstable.toml" } },
Interesting, I cannot use that yet because
rust-analyzeris callingrustfmtat the source file's basedir so.rustfmt.unstable-tomlwill be "not found":
Originally posted by @rami3l in #5065
Source: rust-lang/rustup