Is there a way, to tell vs code, on save, to execute rust-fmt ?
"editor.formatOnSave": true and make sure
rustfmt is installed. You'll also need rust-analyzer (or RLS).
is working because settings.json is getting reformatted on save
rustfmt is installed because it works fine from IntelliJ/Rust on save
however, saving a *.rs file (in the same workspace that worked from IntelliJ) is not triggering a reformat
How does vscode know to call |"rustfmt" for *.rs files ?
rust-fmt works now on *.rs files
Code doesn't call rustfmt, it asks the language server to format the file. rust-analyzer sometimes gets a bit stuck and doesn't get to run it like in https://github.com/rust-analyzer/rust-analyzer/issues/4054, but it should work.