adelf / idea-php-dotenv-plugin

environment parameters completion, based on .env file keys
MIT License
166 stars 13 forks source link

Thoughts on supporting .envrc files that include export prefix #55

Closed jlorenzen closed 4 years ago

jlorenzen commented 4 years ago

I see this plugin supports .env files, but what are your thoughts on also supporting direnv .envrc files where the variables include the export prefix.

adelf commented 4 years ago

Hi, James. dot-env plugin supports export prefix. So, you can try just assotiate .envrc extension with .env File type:

jlorenzen commented 4 years ago

@adelf Ok I tried that but it didn't seem to work. Here are some screenshots. My .envrc file has things like

export DATABASE_HOST=localhost

Screen Shot 2020-05-19 at 5 30 48 PM

Screen Shot 2020-05-19 at 5 29 24 PM

adelf commented 4 years ago

This plugin only highlights the .env files and auto-completes them in the code. https://plugins.jetbrains.com/plugin/7861-envfile - this plugin allows to use them in run configurations.

jlorenzen commented 4 years ago

@adelf