Skip to content

<editor-fold> support for .env files #149

@ghost

Description

Issue was reported here: https://youtrack.jetbrains.com/issue/IJPL-205157

Steps to reproduce

Create .env or .env.local file and add the following content

# <editor-fold>
SOME_ENV_A=someValueA
SOME_ENV_B=someValueB
SOME_ENV_C=someValueC
# </editor-fold>

Expected result (correct result): the fold arrow is displayed on hover

Actual result (faulty result): the fold arrow is not displayed

Environment

PhpStorm 2025.2

Build #PS-252.23892.419, built on August 1, 2025

Additional information

Even though support for .env files was added this year https://blog.jetbrains.com/phpstorm/2025/01/support-for-env-files/ and File Types setting does contain following masks:

*.env
.env
.env.* 

… the <editor-fold> sectioning doesn't work for these files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions