I have some troubles enabling format on save for Rust on vs code.
My vs code settings.json looks like this:
{
"editor.formatOnSave": true,
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
}
}
However when I save a rust file the document is not formatted.
I have properly installed the rust-lang.rust-analyzer extension and strangely enough if I run the command “format ducoment” by hand it works. Any idea?
Does the “format document” command I run by hand always use the default formatter?