first add package management to Sublime Text. It is accessed using ctrl + `shortcut. After opening, paste the code from here into the console and press Enter.
Go to "Settings"> "Package Management"> in this list, click on "Package Management Package Installation 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 contents to a place that you can quickly access, find the file "AndyjQuery.sublime-completions".
- Not sure if it will work just by placing the file with the current name, so I renamed it as "jQuery.sublime-completions"
- Place this file in the jQuery folder from the place that opens when you go to Settings - Package Overview
if you want to use autocomplete when you click a point: Go to the "Settings - User Settings" section and add this
"auto_complete_triggers": [{"selector": "source.js", "characters": "." }],
source share