如何在 Aptana Studio 3 中启用 jQuery 支持
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4721124/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to enable jQuery support in Aptana Studio 3
提问by Shahin
How Can I Enable jQuery In Aptana Studio 3 (beta) ?
I didn't see any document for this version.
Does Aptana Studio 3 (beta) Supporting jQuery?
如何在 Aptana Studio 3(测试版)中启用 jQuery?
我没有看到这个版本的任何文档。
Aptana Studio 3(测试版)是否支持 jQuery?
回答by craig.kaminsky
In Studio 3 much of this sort of functionality is still coming as Aptana is going more of a TextMate bundle route for a great deal of their features, which I think is really cool.
在 Studio 3 中,大部分此类功能仍然会出现,因为 Aptana 将更多地采用 TextMate 捆绑路线来获取其大量功能,我认为这真的很酷。
That said, there is already a jQuery bundle. The jQuery bundle, if you don't have it installed yet, can be installed from Aptana via the Commands menu (Commands->Bundle Development->Install Bundle and then select jQuery from the list).
也就是说,已经有一个 jQuery 包。jQuery 包,如果您还没有安装,可以通过命令菜单从 Aptana 安装(Commands->Bundle Development->Install Bundle,然后从列表中选择 jQuery)。
This support discussion has some details about jQuery code assist in Aptana: https://aptanastudio.tenderapp.com/discussions/problems/2006-studio-3-jquery-support-is-lacking
此支持讨论包含有关 Aptana 中 jQuery 代码辅助的一些详细信息:https: //aptanastudio.tenderapp.com/discussions/problems/2006-studio-3-jquery-support-is-lacking
In particular, it mentions adding a jquery vs doc file (http://code.jquery.com/jquery-1.4.1-vsdoc.js) to your project. This seems to be the key.
特别是,它提到向您的项目添加 jquery vs doc 文件 ( http://code.jquery.com/jquery-1.4.1-vsdoc.js)。这似乎是关键。
If you install the jQuery bundle and add the aforementioned JS file, you can get jQuery code hints in your Aptana editor(s). I just ran through this in one of my Rails projects and it does work (I'm on the latest beta of Studio 3 for Mac).
如果您安装 jQuery 包并添加上述 JS 文件,您可以在 Aptana 编辑器中获得 jQuery 代码提示。我刚刚在我的一个 Rails 项目中运行了这个,它确实有效(我正在使用 Studio 3 for Mac 的最新测试版)。
回答by Ingo Muschenetz
This is incorrect. While this will give you jQuery snippets and some commands, to actually add jQuery content assist, all you have to add is a single file. Please follow the instructions here instead:
这是不正确的。虽然这将为您提供 jQuery 片段和一些命令,但要实际添加 jQuery 内容辅助,您只需添加一个文件。请按照此处的说明进行操作:
http://wiki.appcelerator.org/display/tis/Using+JavaScript+Libraries
http://wiki.appcelerator.org/display/tis/Using+JavaScript+Libraries
回答by user1387219
to have code assist with aptana 3 follow this instructions https://wiki.appcelerator.org/display/tis/JavaScript+Library+Support(i.e. Commands-> Bundle dev->Install-> select jquery) and put your jquery.js library in your project as usual (drop it in a folder of your choice)
要获得 aptana 3 的代码帮助,请按照此说明 https://wiki.appcelerator.org/display/tis/JavaScript+Library+Support(即命令-> 捆绑开发-> 安装-> 选择 jquery)并放置您的 jquery.js像往常一样在您的项目中使用库(将其放在您选择的文件夹中)
回答by Steve Kallestad
I just spent the last hour trying to get this working.
我只是花了最后一个小时试图让这个工作。
Eclipse's support for javascript is terrible. I've tried VJET and aptana. A simple code complete that includes string.replace() won't appear.
Eclipse 对 javascript 的支持很糟糕。我试过 VJET 和 aptana。包含 string.replace() 的简单代码不会出现。
For anyone else hitting this page, I would say this: Don't even bother. Eclipse simply isn't a javascript IDE.
对于点击此页面的其他人,我会说:别打扰。Eclipse 根本就不是一个 javascript IDE。