Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 674
Max Lipsky Avatar asked Jun 15 '15 11:06

Max Lipsky


1 Answers

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

like image 131
Bruce Avatar answered Oct 10 '22 03:10

Bruce