ENV Copier
A VS Code extension that automatically copies your .env file content to .env.example in Svelte projects.
Features
- Automatically watches for changes in
.env files
- Creates or updates
.env.example file when .env changes
- Copies exact values from .env to .env.example
- Preserves comments and empty lines
- Works specifically in Svelte projects
How it works
- When you make changes to your
.env file, the extension automatically detects the changes
- It reads the content of your
.env file
- Creates or updates the
.env.example file with the exact same content
Example
If your .env file contains:
DATABASE_URL=postgres://user:password@localhost:5432/mydb
API_KEY=123456789
DEBUG=true
The extension will create/update .env.example with the exact same content:
DATABASE_URL=postgres://user:password@localhost:5432/mydb
API_KEY=123456789
DEBUG=true
Requirements
- VS Code 1.60.0 or higher
- A Svelte project with a
.env file
Installation
- Open VS Code
- Go to the Extensions view (Ctrl+Shift+X)
- Search for "ENV Copier"
- Click Install
Usage
No additional configuration is needed. The extension will automatically start working when you open a Svelte project that contains a .env file.
Known Issues
Release Notes
0.0.1
Initial release of ENV Copier
Working with Markdown
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
- Split the editor (
Cmd+\ on macOS or Ctrl+\ on Windows and Linux)
- Toggle preview (
Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows and Linux)
- Press
Ctrl+Space (Windows, Linux, macOS) to see a list of Markdown snippets
Enjoy!
| |