Home Download Buy Blog Forum Support

Can't access my snippets - help!

Can't access my snippets - help!

Postby redtopia on Fri Nov 30, 2012 5:49 pm

The way snippets are managed by the user is a little odd to me. I don't like how you have to know the name of the snippet to find it, and there's not a great way to browse snippets... I'm used to using eclipse, and I can easily organize snippets into folders, which makes a lot more sense to me.

Anyway, with that said, I'm more than a little confused at how to manage my snippets and I need some assistance.

I've created 2 snippets, which I cannot seem access. I named them "jp.jquery.hover-click" and "jp.css.opacity" inside the Packages/User folder. The problem is that I can't access these snippets when I go to the Tools-Snippets menu. I can see them inside the Packages/User folder, but the snippets don't exist in my snippets list. How do I resolve this, and what's the best way to manage snippets?

Thanks!!!!
redtopia
 
Posts: 7
Joined: Fri Nov 30, 2012 5:40 pm

Re: Can't access my snippets - help!

Postby AGS on Fri Nov 30, 2012 6:36 pm

Snippets must have the
Code: Select all
.sublime-snippet
ending.

btw, if you like, you most certainly can create a directory/directories in your
Code: Select all
User
directory just for snippets.
AGS
 
Posts: 32
Joined: Mon Aug 20, 2012 5:58 pm

Re: Can't access my snippets - help!

Postby redtopia on Fri Nov 30, 2012 10:52 pm

Great! Thanks so much!

Assuming I create snippet subfolders inside my User folder, how do I navigate into these folders when I add a snippet from the Tools -> Snippets menu item?
redtopia
 
Posts: 7
Joined: Fri Nov 30, 2012 5:40 pm

Re: Can't access my snippets - help!

Postby AGS on Sat Dec 01, 2012 12:39 pm

No problem, glad to help.

I'm not sure I understand the question here. If you create a snippet using Tools -> New Snippet, you should just save it in the directory you want it to go when prompted. If you mean how do you get it to show on the drop down list when you click Tools -> Snippets..., then in that case, all snippets that are defined to trigger in your current scope will be in that list.
AGS
 
Posts: 32
Joined: Mon Aug 20, 2012 5:58 pm

Re: Can't access my snippets - help!

Postby redtopia on Sat Dec 01, 2012 6:24 pm

Yes, I meant how can you organize them in the drop down list. I guess this is the problem... this list can get way out of hand if you install some packages that have snippets in them. I would rather have a more organized approach rather than having to know the name and type-select it. For example, I might know that I have a snippet that I created a year ago, and I can't remember what I named it... but if I were able to browse folders from the snippet drop down list, I think that would be better.
redtopia
 
Posts: 7
Joined: Fri Nov 30, 2012 5:40 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 36 guests