Collapse If statements

I cant believe that I can not collapse if statements in my php code.... surely this can be implemented.

Comments

    I like the idea of being

    I like the idea of being able to collapse somethings by default like if, do, while, for, foreach, ...

    Thomas

    ATM you just have to put a region around the statements..

    I could make this an option.

    I could make this an option. The only concern I have is performance of managing the extra regions. That does not come for free and most of it is done by the editor. You could make it faster if you can tell which regions are invalidated after code changes but sometimes it is very hard to do so you end up invalidating all regions in the file which can be expensive if the file is big.