laravelphpstormphpdotenv

How to edit .env files in PhpStorm?


I generated new .env file with copy .env.example .env command in PhpStorm terminal. Then created .env file then but I can't edit in PhpStorm. When I double clicked it's open external editor (Notepad++).

unvariable file type


Solution

  • Go to file -> settings -> Editor -> File Types -> Recognized file types and select the "Text" -> add some patterns

    .evn
    *.env
    .evn.*
    *.env.*