PhpStorm 2024.3 Help

DotEnv

Use this page to configure IDE support for the environment variables stored in the .env file, docker-compose.yml file, or Dockerfile.

Item

Description

Enable code completion for environment variables

Unselect the checkbox to disable code completion for the environment variable names defined in the .env file, docker-compose.yml file, or Dockerfile.

Store environment values in project indexes

Unselect the checkbox to disable storing environment values in project indexes. To apply the change, clear system caches (File | Invalidate Caches in the main menu).

Hide values in .env files

Select the checkbox to hide the values in .env files behind Show value labels by default.

To see a hidden value in the .env file, open it in the editor and hover over the value or click it. To toggle between hidden and shown values, press Ctrl+NumPad -/Ctrl+NumPad +.

Last modified: 14 January 2025