Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>DotEnvLensNew to Visual Studio Code? Get it now.
DotEnvLens

DotEnvLens

Anmol Kamath

|
3 installs
| (0) | Free
Manage .env files locally — table view, automatic version history, linting, privacy mode, and more.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DotEnvLens (.env Manager)

A powerful VS Code extension for managing .env files — entirely local, no cloud.

Features

  • Syntax Highlighting — Full TextMate grammar for keys, values, comments, interpolation, booleans, and numbers
  • Table View — Visual editor with grouping based on comments, inline editing, add/delete variables
  • Privacy Mode — Mask sensitive values with •••, reveal on click
  • Copy Buttons — One-click copy for both keys and values
  • Duplicate Detection — Linting with squiggly underlines and quick-fix removal
  • Built-in Timeline Version Control — Seamless integration with VS Code's Timeline panel; auto-saves snapshots on every file save with one-click restore
  • Smart Gitignore Checking — Hierarchical parent traversal up to the workspace root, status bar indicator, one-click fix, and "Don't Show Again" option
  • Prettify — Align = signs, sort keys, normalize whitespace
  • Generate .env.example — Strip values while preserving structure and comments
  • Export / Import — Interactive diff view with three merge strategies (replace, append, manual)

Usage

  1. Open any .env file
  2. Click the table icon in the editor title bar (or run Env Manager: Open Table View)
  3. Version history is automatically recorded in the Timeline panel in VS Code's Explorer view
  4. Use the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and search "Env Manager" for all commands

Commands

Command Description
Env Manager: Open Table View Open the visual table editor
Env Manager: Generate .env.example Create a .env.example with keys only
Env Manager: Prettify .env Sort and align your .env file
Env Manager: View Version History (Timeline) Focus the Timeline panel to view/restore versions
Env Manager: Export .env Export the file
Env Manager: Import .env Import with interactive diff view
Env Manager: Check .gitignore Status Verify the file is gitignored

Settings

Setting Default Description
envManager.autoSnapshot true Automatically save version snapshots to the Timeline on file save
envManager.maxVersions 50 Max snapshots per file in history (5–500)
envManager.privacyModeDefault false Start table view with privacy mode on

License

MIT

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