Snippets make it easy & fast to quickly insert text & code into Sublime Text
I’m having students in my web development courses use Sublime Text as their editor. As a result, I’ve been digging deep into Sublime Text & writing up what I’ve learned on my personal website, which I use with some of my classes. This post is a pointer to some of those pages.
Getting tired of cutting & pasting an HTML5 template? Or typing out the same code all the time? Fortunately, Sublime Text makes it easy to quickly insert code snippets that you define. I cover this feature, with explanatory examples for HTML & CSS, on Quickly Insert Text & Code with Sublime Text Snippets.
I did a good job explaining how it works & what you’ll see when you use snippets, but really, the only way to fully understand it is to actually try it out. So after reading my tutorial, try it for yourself in Sublime Text. I think you’ll be impressed & immediately start thinking of ways you can make your coding or writing life easier.
Oh, one more thing: while I like how Sublime Text implements snippets, I also use a system-wide snippet tool: TextExpander. I’ve been using it for years, & it’s fantastic. That plus my Markdown-specific macros in Keyboard Maestro let me automatically type just about anything I’d ever need.