How to get jQuery code completion to work in Sublime Text 2?

AngryHacker picture AngryHacker · Aug 1, 2013 · Viewed 20.9k times · Source

I am doing some light jQuery based Javascript programming with Sublime Text 2. Is there such a thing as code completion for jQuery? I've installed SublimeCodeIntel, but getting nothing.

For instance, consider the following:

<div id="container">hello</div>

<script type="text/javascript">
function doStuff() {
    $('#container').html('change it');
}
</script>

When I type $('#container'). I would expect a popup with things like html, val, etc... to popup. Has anyone gotten jQuery intellisense to work at all?

P.S. To be sure, I am not trying to get snippets working, but rather code completion.

Answer

Rajesh Paul picture Rajesh Paul · Jan 21, 2015

Try package installer in sublime

search for jquery and install.