DEV Community

Utkarsh Shigihalli
Utkarsh Shigihalli

Posted on

.env Manager — Quick way to create Environment Variables

Do you use .env files to manage your environment variables in your local dev environment? .env Manager is a small VSCode extension to quickly add values to .env file, either selecting a text or running the command.

https://marketplace.visualstudio.com/items?itemName=onlyutkarsh.envmanager

Checkout the quick demo.

demo

Usage

The extension exposes a command called .env Manager: Add to .env. The command is available in VS Code "Command Palette" which you can also access using shortcut Cmd + Shift + P on Mac.

command

Alternatively you can also right click on any active editor and select .env Manager: Add to .env from the context menu.

If the folder does not contain .env file at the root, the extension attempts to create it before adding the line.

Make sure you backup your .env file if you have very important secrets in the .env file.

Never commit your .env file in to source control.

Top comments (0)