ProjectEnv plugin provides settings to configure project-wide .env (dotenv) files. Environment variables will be applied to:
- Terminal in all IDEA-based products (tested on Linux, macOS)
- Python Run Configurations, Python / Django Console
- Java Run Configurations (IDEA)
- Go Run Configurations (GoLand)
Env Files tool window > Add your .env/json/yaml files
You can also enable/disable plugin in Terminal / Run configurations: Env Files tool window > ⚙️ > Enable in Terminal / Enable in Run Configurations
Source code mostly based on FileEnv plugin by Borys Pierov. Special thanks for his great work.
-
Using IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "ProjectEnv" > Install Plugin
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
WARNING: I'm not a Java/Kotlin developer. The plugin purpose is to solve my own inconvenience while working with 12factor apps in PyCharm.
Plugin based on the IntelliJ Platform Plugin Template.