Collapse all in TextMate

Is there a way to collapse all functions in a given php file in TextMate?

For example, I have two methods:

function index() {
    //Sample code   
}

function beforeFilter() {
    //Sample Code
}

I would like to be able to issue a command in which all methods will be reset to:

function index() { ...

function beforeFilter() { ...

Thank!

+5
source share
1 answer

Via the menu:

View> Toggle folds at level> All levels

enter image description here

or shortcut:

ALT+ +0

+14
source

All Articles