Dot Env Gen is a lightweight VS Code extension that automatically scans your JavaScript/TypeScript codebase and extracts all process.env and import.meta.env which are written like this process.env.VARIABLE and import.meta.env.VARIABLE usages to generate a ready-to-use .env file.
- 🔍 Scans all
.jsand.tsfiles in your workspace - ⚡ Generates a
.envfile with all detected environment variable keys - 🧠 Smartly ignores
node_modules,build, and other common folders - 💼 Perfect for cloning GitHub projects and setting up local environments
- 🪄 One-click command: Extract ENV Variables
Ever cloned a project from GitHub and had to guess which .env variables are needed?
Dot Env Gen solves that in one click — just run the command and get a .env file with all the required keys extracted from process.env statements.
- Open your project folder in VS Code
- Press
Ctrl + Shift + Pto open Command Palette - Run: Extract ENV Variables
- 🎉
.envfile is created in your project root!
PORT=