Max Lipsky
Max Lipsky

Reputation: 1842

How to turn off auto code folding in PHPStorm?

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?)

Upvotes: 16

Views: 5462

Answers (1)

Bruce
Bruce

Reputation: 1671

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

Upvotes: 28

Related Questions