{ // Use clippy for richer diagnostics on save. "rust-analyzer.check.command": "clippy", "rust-analyzer.check.allTargets": true, // Bevy/wgpu generate a lot of proc-macro code; keep these on for good IntelliSense. "rust-analyzer.cargo.buildScripts.enable": true, "rust-analyzer.procMacro.enable": true, // Surface compile errors inline as you type. "rust-analyzer.diagnostics.enable": true, "editor.formatOnSave": true, "[rust]": { "editor.defaultFormatter": "rust-lang.rust-analyzer", "editor.formatOnSave": true }, // Keep the large /target directory out of search and file watching. "files.watcherExclude": { "**/target/**": true }, "search.exclude": { "**/target/**": true, "**/Cargo.lock": true } }