Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] add support for vscode env in dotenv #1149

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nicksmider
Copy link

@nicksmider nicksmider commented May 1, 2023

This PR allows the users to create .env files for each environment that exists within their vscode settings.

Screenshot 2023-05-01 at 2 51 24 PM

Behavior: When walking back up the path, when either .env or .env.{vscode-env} is found, stop and prefer .env.{vscode-env}.

Use case:
I want to specify an auth token in gitignored env files because the repo's settings.json is checked into source control already so we cannot place them in there safely.

Closes #740

@shaunakv1
Copy link

Will this read the .env file in the root of code that's currently open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow for a dotenv per environment
2 participants