Search code examples
foldingphpstormwebstorm

How to keep code foldings in PHPStorm/WebStorm like in TextMate?


PHPStorm, unlike TextMate, "forgets" the folded code areas when closing and opening the file again.

Sometimes the foldings open by themselves after search-and-replace, even though there were no matches inside the folded areas.

Is there a way to make PHPStorm remember my foldings in PHP/JavaScript/CSS files?


Solution

  • This is currently not possible.

    There's a bunch of related issues in our tracker http://youtrack.jetbrains.net/issues/WI?q=%23Unresolved+folding