first add Package Control to Sublime Text. This is accessed via the ctrl+` shortcut. Once open, paste the code from here into the console and hit Enter.
Go to Preferences > Package Control > from that list click on Package Control Install Package then search for jQuery. This will install jQuery.
Now, if you want autocompletion for jQuery follow these steps:
- Domnload this: package from github
- Extract the content in a place you can access it quickly, look for the file “AndyjQuery.sublime-completions”.
- Not sure if it will work just placing the file with the current name, so I renamed it as “jQuery.sublime-completions”
- Place this file in the folder jQuery from the location that opens when you go to Preferences - Browse Packages
if you want to use autocompletion when pressing the dot:
Go to Preferences - Settings User and add this
"auto_complete_triggers": [ {"selector": "source.js", "characters":
"."} ],