Once I discovered the power of SublimeText’s snippet feature, there was no turning back. Any time I find myself typing a thing that could be automated, I make a snippet for it. The trouble is, sometimes I like to look back at my existing snippets, but I couldn’t get to them easily. Well, I’ve solved that problem today and figured I’d share it with you. Here is how to easily access your existing Sublime snippets on a mac.
Step 1. Create an alias called
snippets in your
In terminal, open your
.bash_profile file in your default text editor.
Step 2. Add one of these aliases to the bottom of your file (or next to any other aliases you may have)
Step 4. Save the
Step 5. Restart terminal
Step 6. Try it out! Type your new alias at your command prompt
This will open the snippets directory and show a list of all existing snippets. From here, you can open any of those snippet files in your default text editor with:
or if you prefer to open the snippets folder in Finder window, you can open a finder window like this:
That’s it! This discovery has really made my day. I hope it’s helpful to you too.
If you need a refresher on how to create your own sublime snippets, check out this post I recently wrote on the topic.