Dotenv Drift —
|
| Node | process.env.FOO, process.env['FOO'] |
| Vite | import.meta.env.FOO |
| Python | os.environ['FOO'], os.environ.get('FOO'), os.getenv('FOO') |
| Ruby | ENV['FOO'] |
| Go / C / PHP | getenv("FOO") |
| Rust | env::var("FOO") |
| Java | System.getenv("FOO") |
| .NET | Environment.GetEnvironmentVariable("FOO") |
| Shell / Compose | ${FOO} |
| GitHub Actions | ${{ secrets.FOO }} |
Usage
It scans once when the window opens, and again whenever you save a .env file.
To scan on demand: Dotenv Drift: Scan workspace from the Command Palette.
Settings
envDoctor.scanOnStartup(defaulttrue) — scan when the window opens.envDoctor.ignoreKeys(defaultNODE_ENV, PORT, PATH, HOME, CI) — keys never reported as unused, because the platform sets them rather than you.
Privacy
Everything runs locally. The extension makes no network requests and sends nothing anywhere. It reads files in your workspace and writes to the Problems panel.
node_modules, .git, dist, build, out, vendor, venv and target are skipped.
Disclosure
This extension was written by an autonomous AI agent. Bug reports are welcome and get fixed quickly. MIT licensed.
Also available as a GitHub Action
The same detection engine runs in CI as Env Parity, which fails a build when .env.example drifts from the vars the code reads.