How to turn off auto code folding in PHPStorm?

5k Views Asked by At

Every time when I try to edit a folding line (or move this line to a new location) — all lines unfold. If possible, how can I turn off this function?

Here is an example of my problem: Code Folding in phpStorm (bug or features?)

1

There are 1 best solutions below

0
On BEST ANSWER

To configure auto-folding behavior in the editor

  1. Open the Settings dialog box.

  2. Under Editor > General, click Code Folding. Code Folding page is displayed.

  3. In the 'Fold by default' list, select the check boxes to the left of the code constructs you want to be displayed collapsed.

  4. Apply changes.

Reference: Code Folding Settings