3

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?

2 Answers 2

4

This is currently not possible.

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

3
  • thanx. looking forward for a fix! Commented Oct 8, 2011 at 10:59
  • 1
    Update: 3.0 EAP has made code folding much more persistent for most files! Commented Nov 17, 2011 at 14:25
  • dude. what is 3.0 EAP? plz.. afaik ppl dk all the random abbrevs you use at work roflmaocopter Commented May 11, 2018 at 6:30
2

this can be possible by using comments like this

 // <editor-fold desc="My Code009" defaultstate="collapsed">
 // any code
 //</editor-fold>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.