Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Sanitize Env CopyNew to Visual Studio Code? Get it now.
Sanitize Env Copy

Sanitize Env Copy

Yadui

| (2) | Free
Copy .env file content without values (replace with empty strings).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Env Sanitizer

A simple VS Code extension that helps you safely share .env files by removing all values and keeping only the keys.
This way you can copy or share your environment files without leaking sensitive information.


🚀 Features

  • Replaces .env variable values with empty strings.
  • Copies the sanitized version directly to your clipboard.
  • Perfect for sharing configs without secrets.

Example:

# Original
API_KEY=super-secret-key
DB_PASSWORD=my-database-pass
DEBUG=true

# Sanitized (copied to clipboard)
API_KEY=""
DB_PASSWORD=""
DEBUG=""

Usage: 1. Open any .env file in VS Code. 2. Run the command: • Command Palette → “Copy Sanitized .env” • or use the keyboard shortcut (if configured). 3. Paste anywhere — secrets are stripped out automatically.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft