Home:ALL Converter>Sublime Text 2: How to make Sublime run a command (fold code) when opening a file by default?

Sublime Text 2: How to make Sublime run a command (fold code) when opening a file by default?

Ask Time:2013-01-12T06:21:50         Author:Risha

Json Formatter

I would like to make it so that whenever I open a file in Sublime it will automatically do "Fold Level 2" Coding which is command shortcut Ctrl-K,Ctrl-2 (or CMD-K, CMD-2). I use both mac and pc.

I don't want to enter that shortcut everytime, instead I would like Sublime to automatically run that on opening a file. Please let me know if there a way to do that.

Author:Risha,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/14287640/sublime-text-2-how-to-make-sublime-run-a-command-fold-code-when-opening-a-fil
yy