Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collapse All in TextMate

Tags:

textmate

Is there a way to collapse all the 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 where all the methods will collapse to:

function index() { ...

function beforeFilter() { ...

Thanks!

like image 729
tnichols Avatar asked Jun 16 '11 18:06

tnichols


1 Answers

Via the menu:

View > Toggle foldings at Level > All levels

enter image description here

or shortcut:

ALT + + 0

like image 117
H6. Avatar answered Dec 11 '22 08:12

H6.