简体   繁体   English

如何在Aptana中启用jQuery Intellisense?

[英]How to enable jQuery Intellisense in Aptana?

I have Aptana and i installed Aptana Support for jQuery plugin. 我有Aptana,并且我已安装jQuery插件的Aptana支持。

Now i oped a javascript file, but can't see any jQuery Intellisense, 现在我选择了一个javascript文件,但是看不到任何jQuery Intellisense,

How to enable that? 如何启用?

I find the easiest way is to create a project in Aptana - you can choose which libraries to include in your project. 我发现最简单的方法是在Aptana中创建一个项目-您可以选择要在项目中包含的库。 Then pull the .js file into your project. 然后将.js文件拖入您的项目。 It should give you jQuery intellisense then. 然后,它应该给您jQuery intellisense。

Check this: 检查一下:

Commands > Bundle Development > Install Bundle then select jQuery . 命令>捆绑软件开发>安装捆绑软件,然后选择jQuery Now jQuery appear in the Commands menu, ans you can use jQuery Snippets and intelisense. 现在,jQuery出现在“命令”菜单中,然后您就可以使用jQuery片段和智能感知了。

I thinks that this only works in js files and not in script tag in HTML file. 我认为这仅适用于js文件,不适用于HTML文件中的脚本标签。

An additional way to achieve this (if all else fails I guess) is to download the file from https://raw.github.com/aptana/javascript-jquery.ruble/master/support/jquery.1.4.2.sdocml and drop it into the root of your project folder. 实现此目的的另一种方法(如果我认为所有其他方法都失败了)是从https://raw.github.com/aptana/javascript-jquery.ruble/master/support/jquery.1.4.2.sdocml下载文件,然后将其放入项目文件夹的根目录。 This should give you intellisense in Aptana 3 (at least) where I tested it. 这应该至少在我测试过的Aptana 3中为您提供了智能感知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM