🔐 Vee9 Env Guard
Never leak a secret while screen sharing again.
Hides every value in your .env files and shows •••••••• instead, right in the editor.
✨ Features
- Values hidden automatically in
.env, .env.local, .env.production, *.env, .envrc and .dev.vars
- Same-length mask: every value shows as
••••••••, so not even the length leaks
- Edit as usual: the value on the line with your cursor is shown so you can still change it
- Streaming Mode: never reveals anything, not even on the cursor line
- Copy without revealing: right-click → Copy Value Without Revealing
- One-click toggle in the editor title bar, the status bar or with
⌘⌥H / Ctrl+Alt+H
- Git safety check: warns you if an
.env file isn't in .gitignore and adds it for you
- Smart parsing: quoted values, multi-line private keys,
export KEY=…, inline # comments (stay visible)
- Harmless keys stay visible:
NODE_ENV, PORT, DEBUG, … (configurable)
- Example files untouched:
.env.example, .env.sample and .env.template aren't hidden
🚀 Usage
Just open an .env file. Values are hidden right away.
| Action |
How |
| Show / hide all values |
Eye icon in the editor title, status bar, or ⌘⌥H / Ctrl+Alt+H |
| Edit a value |
Put the cursor on its line |
| Copy a value without showing it |
Right-click → Copy Value Without Revealing |
| Never reveal anything |
Command Palette → Vee9 Env Guard: Toggle Streaming Mode |
⚙️ Settings
| Setting |
Default |
Description |
vee9EnvGuard.filePatterns |
.env, .env.*, *.env, .envrc, .dev.vars |
Files to protect |
vee9EnvGuard.excludePatterns |
.env.example, .env.sample, … |
Files never hidden |
vee9EnvGuard.visibleKeys |
NODE_ENV, PORT, HOST, … |
Keys that stay visible |
vee9EnvGuard.revealOnCursorLine |
true |
Show the value on the cursor line |
vee9EnvGuard.mask |
•••••••• |
Text shown instead of values |
vee9EnvGuard.warnIfNotIgnored |
true |
Warn if .env isn't git-ignored |
⚠️ Good to know
Env Guard hides values in the editor. Other places can still show file contents, e.g. the global Search panel, Git diffs in some views, hover previews from other extensions, or the terminal (cat .env). For live streams, also add .env* to search.exclude.
| |