Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Env Files ManagerNew to Visual Studio Code? Get it now.
Env Files Manager

Env Files Manager

Apaya

| (0) | Free
Manage .env files with secret masking, multi-environment comparison, missing variable detection, and usage search.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Env Manager

Manage .env files with secret masking, multi-environment comparison, missing variable detection, and usage search.

Features

Sidebar Tree View

Browse all .env files in your workspace with their variables organized in an Explorer sidebar panel.

Secret Masking

Values are hidden by default. Toggle masking with the eye icon to reveal or hide all values.

Multi-Environment Comparison

Compare any two .env files side-by-side using VS Code's built-in diff viewer. Quickly spot differences between .env.development and .env.production.

Missing Variable Detection

Automatically warns when variables defined in .env.example are missing from your .env files. Shows warnings both in the sidebar and as VS Code diagnostics.

Variable Usage Search

Right-click any variable and select "Find Variable Usage" to search your entire codebase for references. Supports:

  • process.env.KEY (Node.js)
  • import.meta.env.KEY (Vite)
  • os.environ["KEY"] (Python)
  • ENV["KEY"] (Ruby)
  • env::var("KEY") (Rust)
  • System.getenv("KEY") (Java)

Hover Preview

Hover over process.env.API_KEY (or equivalent) in your code to see the current value from your .env file.

Generate .env.example

Automatically generate a .env.example file from your existing .env, stripping all values but keeping keys and comments.

Sort Variables

Sort all variables in a .env file alphabetically.

Add, Edit, Delete

Manage variables directly from the sidebar without opening the file.

Commands

Command Description
Env Manager: Refresh Refresh the env file list
Env Manager: Toggle Secret Masking Show/hide variable values
Env Manager: Compare Env Files Diff two env files side-by-side
Env Manager: Generate .env.example Create example file from env
Env Manager: Sort Variables Alphabetically Sort variables A-Z
Env Manager: Find Variable Usage in Code Search codebase for variable usage

Settings

Setting Default Description
envManager.maskSecrets true Hide env variable values by default
envManager.envFilePatterns [".env", ".env.*"] Glob patterns to detect env files
envManager.excludeDirectories ["node_modules", ...] Directories to exclude when scanning

Privacy

This extension runs entirely on your machine. No data is sent anywhere.

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