idea-php-dotenv-plugin icon indicating copy to clipboard operation
idea-php-dotenv-plugin copied to clipboard

support files that end in ".env" not just files with that name

Open skewty opened this issue 2 years ago • 3 comments

I get syntax colors and commenting in .env file but when I open dev.env it doesn't work.

Can you please add support for all files that end in ".env"?

skewty avatar Sep 01 '23 22:09 skewty

@skewty Override the file type as DotEnv and it'll work. Right click on the file in the file list view and find "Override File Type" option in the menu and choose DotEnv as the new file type. Syntax highlighting will start working for this file.

maqduni avatar Sep 24 '23 22:09 maqduni

Likewise, .env.local loses syntax highlighting too...

Robula avatar Nov 12 '25 14:11 Robula

Standard file types, registered by plugin are here:

Image

So, *.env files, and .env.* files should work. But sometimes, other plugins or users change this, and the .env plugin doesn't work. Please check your File Types settings and fix it.

adelf avatar Nov 12 '25 15:11 adelf