Skip to content

What do you think about Visual Studio Marketplace? We are looking for feedback from developers like you! Take the survey

| Marketplace
Sign in
Visual Studio Code>Other>Terminal.envNew to Visual Studio Code? Get it now.

Terminal.env

Haidar Zeineddine

|
201 installs
| (4) | Free
Laods .env variables to terminal session
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Terminal.env

Create a new terminal session using environment variables defined in the .env file inside workspace/folder(s)

Features

Visual Studio Code allows you to define environment variables inside the .env file which works perfectly when using the Run/Debug option. Developers expect the variables defined in the latter to be loaded into their terminal session seamlessly. Unfortunately, that's not happening and you have to define the variables that you declared in .env somewhere else in the settings.

Here comes the role of Terminal.env, it allows you to open a new terminal session loading the environment variables that you've defined in the .env file.

How it works

Simply open the Command Palette and type down Terminal.env and press enter...

Known Issues

Nothing so far

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft