Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Env VaultNew to Visual Studio Code? Get it now.
Env Vault

Env Vault

zhengdifei

| (0) | Free
Switch between .env files with automatic backup, and generate secret-masked copies for safe sharing.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Env Vault

Switch between your project's .env files without fear, and share them without leaking.

Features

  • Switch Environment: pick from .env / .env.local / .env.development / .env.staging / .env.production (configurable via envVault.files) → the chosen file is copied into the active .env, and the previous content is backed up to .env.backup-<timestamp> first.
  • Generate Masked Copy: writes <active>.masked where secret-looking values (KEY|TOKEN|SECRET|PASSWORD|DSN|CREDENTIAL|PRIVATE or long values) become ab****… — keys and structure stay intact, values don't leak. Review before sharing; this is a convenience, not a redaction guarantee.
  • Status bar: shows the currently active env file; click to switch.

Safety notes

  • Values are never printed to any output channel — only file names appear in messages.
  • Backups are additive (timestamped); nothing is deleted.

Pro version (planned)

Team-synced environment profiles and an audit log of who switched what, when. The free extension is fully usable on its own — no nags, no telemetry.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft