CodeFolding - can it be manually forced?

Code Folding seems to undo itself more often that I'd like.
Is there a way we can define a section to auto fold?

I picture something like this

<? php
class foo{

    // region: utilites, folded: True
    function IDontEverWantToSeeThis(){
       //junk
       //clutter
       //bad code
    }
   // endregion: utilities

?>

If there was a way to do that, so that PHPStorm would open this file with that region collapsed, that would be awesome

0
2 comments

This would be a great feature for Webstorm also for javascript files.
I recall there was a plugin/macro for visual studio which allowed regions to be specified in javascript files.

0

Please sign in to leave a comment.