Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How compress functions in atom editor?

I have using Atom Editor for a while and I don't find the way to compress all functions in a file. When I open a file with twenty or thirty functions, I need see only the headers and I have to lose a lot of time clicking in simbol near to head function to compress all. I think that exist a shortcut to do this but I can't find it. Someone know it?

like image 380
Juan Antonio Avatar asked Dec 07 '22 23:12

Juan Antonio


2 Answers

Go to Edit > Folding. There you will find different actions (fold, fold all, unfold, unfold all), with the corresponding keybindings.

like image 143
Fab313 Avatar answered Dec 22 '22 00:12

Fab313


on Mac OS you can use hot key:

Cmd + Option + shift + [
like image 43
Thao Nguyen Tien Avatar answered Dec 22 '22 01:12

Thao Nguyen Tien