JetBrains / idea-php-dotenv-plugin

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

Symfony's .env.local.php is also parsed as .env syntax #63

Closed 7ochem closed 3 years ago

7ochem commented 4 years ago

In Symfony it is possible to have a .env.local.php file to override other .env files and to leverage PHP's opcache.

Now this file is also parsed and highlighted as .env syntax instead of PHP syntax. It would be great if it could be excluded. And it would be awesome if the plugin would not consider the file to be .env syntax (but PHP), but if it would register the defined variables and values (e.g. for usage search and key checking).

adelf commented 3 years ago

I'll try to fix that. There is a workaround: add this file name as PHP file type pattern:

image

7ochem commented 3 years ago

There is a workaround: add this file name as PHP file type pattern:

The workaround works! Thanks for that :+1: