Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ENV CopierNew to Visual Studio Code? Get it now.
ENV Copier

ENV Copier

Dimitrs Pasvadis

|
3 installs
| (0) | Free
Automatically copies .env content to .env.example in Svelte projects
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. When you make changes to your .env file, the extension automatically detects the changes
  2. It reads the content of your .env file
  3. 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

  1. Open VS Code
  2. Go to the Extensions view (Ctrl+Shift+X)
  3. Search for "ENV Copier"
  4. 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

  • None at the moment

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

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

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