Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collapse all expanded sidebar folders in Sublime Text 2

Is there a menu option or keyboard shortcut to collapse all expanded folders in the sidebar? It gets messy over there and seems like there should be a better way than closing them one by one.

like image 460
neurodynamic Avatar asked Feb 08 '15 13:02

neurodynamic


People also ask

How do I collapse in Sublime Text?

Easy! Select the text you want to fold and hit Command + Option + [ . You'll now see you have a little icon indicating you have folded some code.

How do I show the sidebar in Sublime Text 4?

If you open the ST console (View menu -> Show Console) and type/paste sublime. log_commands(True) Enter and then right click in the main text area and select Reveal in Sidebar , you'll see in the console the name of the command being executed.


2 Answers

On OSX: option + left click at the root node.

On windows/linux: control + alt + left click

like image 75
AGS Avatar answered Oct 16 '22 21:10

AGS


For Sublime Text 3 on Linux Mint 17.2 w/ Cinnamon I had to disable the following setting:

System Settings->Windows->Behavior->Moving and Resizing Windows->Special key to move and resize windows

After that Alt+left click worked!

like image 25
Billy Avatar answered Oct 16 '22 22:10

Billy