Aptana 3 jQuery code assist and auto-complete hinting
Asked Answered
M

4

5

I've been using Aptana for about a week now, and just picked up jQuery for the last couple of days. But I'm mort getting any code assistance, which will help me with syntax add stuff as I learn. I've been searching fit a few days already and I'm not getting a straight answer how to enable this.

I read it's supported and should have assistance by creating a new html and JavaScript template and it should do it... unfortunately it doesn't.

I can use some help to shred some light on this please.

Miun answered 31/7, 2011 at 18:1 Comment(0)
M
18

to have code assist with aptana 3 follow this instructions https://wiki.appcelerator.org/display/tis/JavaScript+Library+Support i.e. Go to

Commands -> Bundle development -> Install Bundle and then select jQuery from the resulting dialog box.

You can then write jQuery code and get assistance.

Mckenney answered 10/5, 2012 at 13:59 Comment(1)
It wasn't immediately obvious to me that jQuery assistance was enabled after doing this. I thought it would provide assistance as soon as I typed $. or jQuery.. In fact, type something like $.("*"). or jQuery.("*"). and you will see it available.Everard
E
0

Please go to the official documentation page and follow the instructions step by step (it is a piece of cake): http://wiki.appcelerator.org/display/tis/Using+JavaScript+Libraries#UsingJavaScriptLibraries-Viewingcodeassist%28usingjQueryasanexample%29

Earsplitting answered 9/8, 2011 at 13:18 Comment(1)
The instructions aren't super clear: "Add the file from: raw.github.com/aptana/javascript-jquery.ruble/master/support/…. Make sure to save it with the .sdocml extension." Where should the file be added? I'm confused. Can you clarify? Thanks.Normand
H
0

Selecting "Commands | Bundle Development | Install Bundle" didn't show any option to enable jQuery in the resulting dialogue box.

Here is how I fixed the problem:

I went to https://github.com/aptana/javascript-jquery.ruble/releases and downloaded the most recent release ending in .studio3 (ignoring the ones that ended in .titanium, of course since I'm using Aptana Studio and not Appcelerator's Titanium). Just below the name of the release are several options to get the file in different formats -- I chose the .zip format.

I unzipped the file I downloaded and copied the extracted folder ("javascript-jquery.ruble-3.4.2.201308081805-studio3" in my case) into the "~/Documents/Aptana Rubles" folder. (on a Windows Vista or 7 or 8 or 8.1 machine, I'd imagine it'd be in "X:\Users\UserName\Documents\Aptana Rubles" where X is the drive on which you store your user-profile stuff, and "UserName" is the name you use to login to the computer. On a Windows XP machine it'd probably be "C:\Documents and Settings\UserName\Documents\Aptana Rubles")

After copying the folder to that location, I clicked on "Commands | Bundle Development | Update User Bundles". Gave it a minute to process that, then I clicked on "Commands | Bundle Development | Install Bundle" and the jQuery option appeared at the bottom of the list. I clicked on it, and it installed the bundle properly.

All of the projects in my Aptana workspace were closed when I installed this bundle, so I opened one up and opened its index.html file to test this new bundle. Inside a pair of <script> tags, I typed $. and immediately got code-hints. So it appears to work.

Hope this helps.

Highlands answered 14/11, 2013 at 5:2 Comment(0)
F
0

If the above Answer from user1387219 (https://mcmap.net/q/1873949/-aptana-3-jquery-code-assist-and-auto-complete-hinting) show no code-assistance for your still startedd Project, try the following (after done the "jQuery Bundle Stuff" user1387219 described:

  1. Click Project >> Properties
  2. Go to "Project Build Path"
  3. Activate the Checkbox in front of the jQuery-Library you need.
  4. Save with ok.

Now you should have working code-assistance. Try to type $ and press CTRL+Space.

enter image description here

Forbidden answered 24/1, 2014 at 13:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.