Gavin St. Ours

Sublime Text Archives - Gavin St. Ours

Some Sublime Text Magic

Screen Shot 2013 02 19 at 7 32 08 AM

It’s a basic thing, but I didn’t know it until today. In Sublime Text 2, you can press Command-Shift-P and harness most of the program’s magic without ever leaving your keyboard. Want to change the syntax to Ruby? Bam. Want to convert all your tabs to spaces (if you’ve forgotten to change the prefs to do that for you)? Bam again. Where have you been all my life, Command-Shift-P?

Also, Command-B runs my code, so long as I don’t need to use gets.chomp or get any input from the user at the command line. Super-quick, super-awesome. Like I said, they’re two small, very basic tricks, but I have a feeling I’ll use them every day.