Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AI Env HarvesterNew to Visual Studio Code? Get it now.
AI Env Harvester

AI Env Harvester

Sujal Dey

|
2 installs
| (0) | Free
Automatically generates .env and .env.example files by scanning your codebase and using AI-powered suggestions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Env Harvester

Auto-generate .env and .env.example files by scanning your codebase and detecting environment variables automatically.

Env Harvester analyzes your project, finds environment variable usage, and uses Gemini AI to generate realistic placeholder values and setup instructions for each variable.

Features

  • Scans JavaScript and TypeScript projects
  • Detects process.env.* usage
  • Generates .env and .env.example
  • AI-powered placeholder values
  • AI-generated setup instructions
  • Safe file creation logic
  • Shows where each variable is used

Example Output

# Used in: src/server.js
# How to get: Standard default port for local development.
PORT=3000

# Used in: src/config/db.js
# How to get: Create a database connection string from your database provider dashboard.
DATABASE_URL=your_value_here

Requirements

  • Node.js 18+
  • Gemini API Key

Usage

  1. Open your project in VS Code.
  2. Open Command Palette (Ctrl + Shift + P).
  3. Run:
Generate .env Files
  1. Env Harvester will scan your project and create:
  • .env
  • .env.example

Supported Files

  • .js
  • .jsx
  • .ts
  • .tsx

Roadmap

  • Support for import.meta.env
  • Support for destructured env variables
  • Sidebar UI
  • Multi-language support
  • Framework-specific templates

License

MIT License

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