ProjectEnv icon indicating copy to clipboard operation
ProjectEnv copied to clipboard

[Request] Ability to expose environment variables in Run configuration

Open iksaku opened this issue 3 years ago • 4 comments

Currently using Webstorm and the plugin works like a charm exporting env variables to the terminal.

I would like to know if it is possible to expose env variables in Run configurations.

This would help me keep using my muscle memory (Ctrl+Option+R) to run pre-configured yarn/npm scripts instead of always relying on the terminal to run them if I need .env exposition.

Thanks!

iksaku avatar Apr 23 '22 20:04 iksaku

Thank you for using the plugin.

I'll take a look into this (webstorm run configurations support) during the planned refactoring.

BredoGen avatar May 15 '22 11:05 BredoGen

Found it also not work in webstorm terminal

calmzhu avatar Jun 04 '22 02:06 calmzhu

@iksaku Thank you for reporting!

Unfortunately there is no plugin extension point in Webstorm to patch run configuration env values. Hope it will be added someday.

BredoGen avatar Jun 04 '22 05:06 BredoGen

@calmzhu Have you tried to restart terminal tab after adding env file? It's required step to make it work.

BredoGen avatar Jun 04 '22 05:06 BredoGen