Fold / Collapse the except code section in sublime text 2

newBike picture newBike · Sep 16, 2013 · Viewed 86.8k times · Source

Is there any plugin or shortcut to hide all except code section in sublime text 2?

I need to fold all except section at a time , Not fold one section at a time.

Thanks~

enter image description here

Answer

Nir Alfasi picture Nir Alfasi · Sep 16, 2013

If you'll hover with the mouse over the line numbers you'll see arrows - clicking on any of them will fold/collapse the code

enter image description here

enter image description here

If you want to collapse/expand all - you can do so by going to edit->code folding and choose "fold all" or "unfold all":

enter image description here