Can't use vsocde formatter for `.rs` files unless I have Cargo.toml files

I can't use vsocde formatter (i.e., Rust - Visual Studio Marketplace) for any .rs files unless I have Cargo.toml file in the root of the folder opened in vscode. And this means to format any .rs file it has to be inside a cargo project and it doesn't sound a good thing..

Can anybody help me on this..?

I'd recommend just installing the rust-analyzer extension directly.

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.