Reputation: 278
I am using "Eclipse IDE for javascript Web developers" Indigo on linux 64-bit machine. I installed aptana plugin from Help > Install New Software .But jquery auto-completion feature isn't working.
I read this post,but no such paths exist in indigo (Preferences > Aptana > Editors > JavaScript > Code Assist > Check jQuery ) and (Window > Open Perspective > Other... > Aptana)
I also checked it on this page, but selecting *.js doesn't show any "Aptana JS editor"
What's wrong with it ? What should i do? thanks in advance......
Upvotes: 1
Views: 4109
Reputation: 5934
VanAlbert is almost correct although you dont need to do everything he has written. Config Eclipse 4.2 Aptana Plugin 3.2.2
Step 1
Commands->Bundle Development->Install Bundle->JQuery(last one) Tip: If you want to use this bundle in multiple projects copy the folder to C:\Users\USERNAME\Aptana Rubble
Step 2
Right Click on project->Properties->Project Build Path->Select The JQuery Version
Step 3
Goto Window -> Preferences -> General -> Editors -> File Associations and choosing the .js extension in the list Select 'JavaScript Source Editor' as Default Editor
Upvotes: 0
Reputation: 2469
For Eclipse Juno 4.2 and Aptana Studio 3 and JQuery (jquery-1.7.2.js)
There are dozens of outdated posts on SO and elsewhere that refer to deprecated Aptana dialogs and provide information that isn't pertinent to the current Eclipse version. All I know is that for Eclipse Juno 4.2, Aptana 3 and JQuery 1.7.2, here's what works (for me, at least):
Make sure the Aptana plugin is installed and you're in the Web perspective. That's what the Aptana Studio perspective is called...it would be less confusing if they named it something that had the word 'Aptana' in it.
Make sure your default editor is 'JavaScript Source Editor'. Set this in Window -> Preferences -> General -> Editors -> File Associations and choosing the .js extension in the list. There is more than one option in the list box below. Using any other editor didn't even give me code coloring...this is the only one I could get code assist to work with.
I did this but I don't know if it was really even necessary. But I installed the JQuery ruble as below: http://wiki.appcelerator.org/display/tis/JavaScript+Library+Support#JavaScriptLibrarySupport-jQuery%28
Then, to expound on the answer provided by majgis at the bottom of Eclipse JavaScript Editor: content assist for js files, autocompletion : Create a new project and add the uncompressed JQuery library by dropping jquery-1.7.2.js onto the project in the Project Explorer and selecting the Link To File option in the dialog that appeared. I linked to the jquery-1.7.2.js in the /js folder of the project root which is where the library usually goes anyway. Drop jquery1.4.2.sdocml into the project and choose to either copy or link to the file. I copied the file into the root of the project.
Follow the SO link above for more information.
Upvotes: 3