This is something I have wanted for ages. jQuery code assist AKA code completion AKA autocomplete AKA intellisense, in my favourite IDE Eclipse.
- Install Aptana 3 plugin: go Help > Install New Software, and use this URL: http://download.aptana.com/studio3/plugin/install
- Enable jQuery bundle: make sure you are using the Aptana ("Web") perspective and go Commands > Bundle Development > Install Bundle > jQuery
- Use the Aptana JavaScript editor, rather than the default Eclipse / WTP one: go Window > Preferences > General > Editors > File Associations, and click *.js and then make the "JavaScript Source Editor" the default.
And that should be it - open a JavaScript file, and type $("input").cli and then hit
ALTERNATIVE
You could also try jQueryWTP, or JSDT jQuery which is available in the Eclipse Marketplace, but I have no experience with these. Please add comments if you these plugins are actually any good.
REFERENCES
http://stackoverflow.com/questions/4721124/how-to-enable-jquery-support-in-aptana-studio-3
Awesome - thank you for the instructions!
ReplyDeleteCool! finally a simple and just working explanation.. Thanks!
ReplyDeleteAwesome sauce. Thanks!
ReplyDeletethanks maan
ReplyDeleteCould you explain how to add more bundles that aren't in the list.
ReplyDeleteJavaScript autocomletion in the Codelobster works better - http://www.codelobster.com
ReplyDelete