Add UI button to switch `rust-analyzer.cargo.target` in VSCode
Currently, changing the rust-analyzer.cargo.target requires manually editing .vscode/settings.json. This is cumbersome, especially when frequently switching between different targets (e.g., x86_64-unknown-linux-gnu, wasm32-unknown-unknown).
For example, changing the target currently involves editing your settings like this:
{
"rust-analyzer.cargo.target": "aarch64-linux-android"
}
It would be very convenient to have a dedicated UI button or dropdown in VSCode to switch the target quickly, similar to how other settings like Rust toolchain can be selected.
This would improve workflow efficiency and reduce manual errors when changing targets.
Thank you for considering this feature!
We can maybe provide a best-effort list, but not a complete list, because the complete list depends on the rustc in use.