ProjectEnv plugin provides settings to configure project-wide .env (dotenv) files. Environment variables will be applied to:
- Terminal (tested on Linux, macOS)
- Python Run Configurations
- Python Console
- Django Console
Also supported:
- IDEA Java Run configurations
- GoLand Run configurations
- Terminal in IDEA-based products
Settings/Preferences > Build, Execution, Deployment > ProjectEnv Settings > Enable plugin > Select env files for the project
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.