A Visual Studio Code extension that automatically generates .env.example files based on existing .env files in your workspace. Simplify your development process by ensuring consistent environment variable configurations across your projects. Additionally, it automatically generates .gitignore files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
.env.example generator - A Visual Studio Code extension
Description
env-example-generator is a Visual Studio Code extension that automatically generates .env.example files based on existing .env files in your workspace. Simplify your development process by ensuring consistent environment variable configurations across your projects. Additionally, it automatically generates .gitignore files to exclude sensitive environment files from version control.
Features
Automatically generate .env.example files based on existing .env files.
Automatically generate .gitignore files to exclude sensitive environment files from version control.
Installation
Open Visual Studio Code.
Go to the Extensions view by clicking on the square icon in the sidebar.
Search for env-example-generator.
Click on the Install button.
Reload Visual Studio Code to complete the installation.
Usage
Open your workspace in Visual Studio Code.
Ensure you have a .env file in your workspace.
The extension will automatically generate a corresponding .env.example file and .gitignore file in the root of your workspace.
Customize the generated .env.example file as needed.