I found what appear to be repository ofsnippets for jQuery to use with Sublime Text Editor. But being new to this editor I do not know how to add snippets to the editor. Could someoen provide some assistance in accomplishing this?
jQuery Snippets?
simply place the files in your javascript package folder, on my computer (Windows 7) would be:
C:\Users\MYUSERNAME\AppData\Roaming\Sublime Text\Packages\JavaScript
On older windows (pre-vista?) it will be somewhere in C:\Documents and Settings\etc… I believe
[quote=“toothrot”]simply place the files in your javascript package folder, on my computer (Windows 7) would be:
C:\Users\MYUSERNAME\AppData\Roaming\Sublime Text\Packages\JavaScript
On older windows (pre-vista?) it will be somewhere in C:\Documents and Settings\etc… I believe[/quote]
Easier and works in any windows version
Type this in the RUN dialog (start menu > run OR windows key + R):
%appdata%\Sublime Text\Packages
Hi, Can anyone explain how I can’t activate these snippets? I have them in Javascript folder but tab or ctrl+space does nothing. How I can use them??? I’m using ST2.
I have found that if I delete jQuery from source.js.jquery everything works fine. Am I doing something wrong?
Maybe it’s the location. I have them in User/jQuery and source.js.jquery seems fine. You don’t have to keep them in Javascript folder for them to work under javascript. It’s the scope that makes this happen.
I actually created new folder “myStuffJQuery” and placed them all in there. This folder is located in “Packages” folder. I guess this doesn’t make any difference but anyways, they are working now. Thanks guys.
Could we get these on GitHub?
All the akalias stuff is now gone 404… (and blocked by my work as well… probably because of the word “alias” in the URL)
-Jim
You can use the original jQuery snippets directly, from github.com/textmate/javascript- … r/Snippets
Do these need to be renamed *.sublime-completion or something along those lines first?
-Jim