{ "name": "Rust Minimal Dev", "build": { "dockerfile": "Dockerfile" }, "customizations": { "vscode": { "extensions": [ "rust-lang.rust-analyzer", "tamasfe.even-better-toml", "vadimcn.vscode-lldb", "usernamehw.errorlens" ] } }, "remoteUser": "vscode", "mounts": [ "source=rust-target-cache,target=${containerWorkspaceFolder}/target,type=volume" ], // This runs every time the container starts to ensure the volume is writable "postStartCommand": "sudo chown vscode:vscode ${containerWorkspaceFolder}/target", "settings": { "rust-analyzer.checkOnSave.command": "clippy" } }