Dotclip
Copy any value from your .env files in one click.
Features
Dotclip adds a Copy KEY link above every variable in your .env files. Click it and the value goes straight to your clipboard. No more selecting text by hand, and no more copying the quotes by accident.
- Works on any file matching
.env* (.env, .env.local, .env.production, …)
- Removes surrounding quotes, so
API_KEY="abc123" copies abc123
- Ignores inline comments, so
PORT=3000 # dev only copies 3000
- Shows a short confirmation in the status bar after each copy
- Keeps VS Code's syntax colors for
.env files (and works alongside extensions like DotENV)
Privacy
Dotclip reads only the .env file you have open, and only when you click a Copy link. It makes no network requests, collects no telemetry, and never writes to your files. The status bar confirmation shows the variable name, never its value.
Supported syntax
# Comments and blank lines are ignored
DATABASE_URL=postgres://localhost:5432/app
export NODE_ENV=production
API_KEY="abc123"
SECRET = 'my secret'
PORT=3000 # inline comment
COLOR=#fff
Each of the variables above gets its own Copy link.
A # starts an inline comment only when there's a space before it, so values like #fff or https://example.com/#section are copied whole. Inside quotes, # is always part of the value.
Known limitations
- Values that span several lines aren't supported. Only the first line is copied, including its opening quote.
Release notes
See CHANGELOG.md.
License
MIT