Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>env-example Auto GeneratorNew to Visual Studio Code? Get it now.
env-example Auto Generator

env-example Auto Generator

AbdelhalemKassara

|
95 installs
| (1) | Free
auto prompts the user to create an .env-example when an .env file is detected and keeps it in sync
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

env-example Auto Generator

Keeps your .env-example file automatically synced with your .env file, removing sensitive data and ensuring a clean, up-to-date example for your project.

Features

  • Asks the user if it should keep a .env-example file in sync with the currently opened .env file at the first save.
  • Updates the .env-example file every time the user saves the .env file and supports all *.env.* files.
  • Toggle buttons on the editor toolbar to control whether or not to keep the .env-example file in sync.
  • Displays error messages for invalid .env to let the user know why the .env-example file wasn't updated.
  • Unobtrusive, adding no additional placeholder data to the .env-example.

  • Works with a single, double, single multi-line, and double multi-line quotes.

  • Removes any unnecessary extra lines from multi-line values, keeping the example clean.

Extension Settings

  • env-example-auto-generator.Error-Notifications Toggles whether or not to display error notifications for invalidly formatted .env files.

Incoming Features

None right now but let me know on https://github.com/AbdelhalemKassara/env-example_auto_generator/issues if there are any features I should add.

Known Issues

Let me know on https://github.com/AbdelhalemKassara/env-example_auto_generator/issues if there are any issues that you find with this extension.

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