How to prevent rust-analyzer from running automatically in VS code

Add this to your settings.json in VS Code (open Command Palette -> Preferences: Open Settings (JSON)):

example.json
"rust-analyzer.initializeStopped": true,

You might need to remove the comma if it’s the last entry in the file.


Check out similar posts by category: Rust, VSCode