Reputation: 4199
I am editing a .jsp file, and I inserted a <script>
html tag, specifying the path of the jquery.js file, then in the next <script>
tag, I am trying to use JQuery methods, but it has not autocompletion.
How do I enable autocompletion for JavaScript in HTML/JSP files? I am currently using Web Tools Project, but I am willing to download any other addon if required.
Upvotes: 0
Views: 1470
Reputation: 256
I think you should have a look to this eclipse plugin https://github.com/angelozerr/angularjs-eclipse and most specifically this one https://github.com/angelozerr/tern.java
I use it for angularjs and JS autocompletion. You can add autocompletion on jQuery and other common libraries.
To install and use it, look https://github.com/angelozerr/tern.java/wiki.
Upvotes: 2