Aptana 3 jQuery 代码辅助和自动完成提示
我已经使用 Aptana 大约一周了,最近几天才开始使用 jQuery。但我很可能会得到任何代码帮助,这将帮助我在学习时添加语法内容。我已经搜索了几天,但没有得到如何启用此功能的直接答案。
我读到它是受支持的,并且应该通过创建新的 html 和 JavaScript 模板来获得帮助,它应该可以做到这一点......不幸的是它没有。
我可以请一些帮助来阐明这一点。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
要获得 aptana 3 的代码帮助,请按照此说明操作
https://wiki.appcelerator.org/display/tis/JavaScript+Library+Support 即转到
命令 -> 捆绑开发 -> 安装捆绑包,然后从出现的对话框中选择jQuery。
然后您可以编写 jQuery 代码并获得帮助。
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.
请转到官方文档页面并按照说明一步步操作(这是小菜一碟): http://wiki.appcelerator.org/display/tis/Using+JavaScript+Libraries#UsingJavaScriptLibraries-Viewingcodeassist%28usingjQueryasanexample%29
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
选择“命令|捆绑包开发|安装捆绑包”并没有在出现的对话框中显示任何启用 jQuery 的选项。
这是我解决问题的方法:
我去了 https://github.com/aptana/ javascript-jquery.ruble/releases 并下载了以 .studio3 结尾的最新版本(忽略以 .titanium 结尾的版本,当然,因为我使用的是 Aptana Studio 而不是 Appcelerator 的 Titanium)。版本名称下方有几个选项,用于获取不同格式的文件 - 我选择了 .zip 格式。
我解压了下载的文件,并将提取的文件夹(在我的例子中为“javascript-jquery.ruble-3.4.2.201308081805-studio3”)复制到“~/Documents/Aptana Rubles”文件夹中。 (在 Windows Vista 或 7、8 或 8.1 计算机上,我想象它位于“X:\Users\UserName\Documents\Aptana Rubles”中,其中 X 是存储用户配置文件内容的驱动器, “UserName”是您用于登录计算机的名称,在 Windows XP 计算机上,它可能是“C:\Documents and Settings\UserName\Documents\Aptana Rubles”)
复制文件夹后。到该位置,我单击“命令|捆绑包开发|更新用户捆绑包”。给它一分钟的时间来处理它,然后我单击“命令 | 捆绑包开发 | 安装捆绑包”,jQuery 选项出现在列表底部。我单击它,它正确安装了该捆绑包。
当我安装此捆绑包时,我的 Aptana 工作区中的所有项目都已关闭,因此我打开了一个项目并打开其 index.html 文件来测试这个新捆绑包。在一对
希望这有帮助。
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.
如果 user1387219 (https://stackoverflow.com/a/10535593/1256697) 的上述回答没有显示代码帮助对于您仍然启动的项目,请尝试以下操作(完成 user1387219 描述的“jQuery Bundle Stuff”之后:
您应该可以输入 $ 并按 CTRL+Space。
现在 src="https://i.sstatic.net/Sotav.jpg" alt="在此处输入图像描述">
If the above Answer from user1387219 (https://stackoverflow.com/a/10535593/1256697) show no code-assistance for your still startedd Project, try the following (after done the "jQuery Bundle Stuff" user1387219 described:
Now you should have working code-assistance. Try to type $ and press CTRL+Space.