---
title: "转：aptana安装jquery库，并支持jquery自动提示"
author: "bd2007"
date: "2011-08-05T14:56:41Z"
tags: []
slug: "aptana-jquery-jquery"
draft: false
lastmod: "2011-08-05T14:56:41Z"
id: 1141017
url: "https://bd2007.iteye.com/blog/1141017"
---

转自：[http://hi.baidu.com/flftfqwxf/blog/item/88d153de0e73e106622798d0.html](http://hi.baidu.com/flftfqwxf/blog/item/88d153de0e73e106622798d0.html)
 
>
打开aptana默认首页中有个plugins，点击就可以看到所有的aptana插件列表，点击ajax，然后选择你需要的javascript库。出现如下页面：
[<img class="alignnone size-full wp-image-734" src="http://hiphotos.baidu.com/flftfqwxf/pic/item/6ce1c5008afc5583267fb5a8.jpg" alt="" width="411" height="405">](http://www.36ria.com/wp-content/uploads/aptana2.jpg)
这里我选择ext与jquery，点击next开始安装。安装成功后，即可自动提示这二个库的函数。（需创建web项目的前提下才带有提示。）
 
二、创建web项目 
[<img class="alignnone size-full wp-image-735" src="http://hiphotos.baidu.com/flftfqwxf/pic/item/7e76c5d70a084c7a06088ba8.jpg" alt="" width="347" height="352">](http://www.36ria.com/wp-content/uploads/aptana3.jpg)
点击“projects”，展开“web”，点击“default web project”，点“next”。
[<img class="alignnone size-full wp-image-736" src="http://hiphotos.baidu.com/flftfqwxf/pic/item/f882dc2e287ffa6d1e3089a8.jpg" alt="" width="491" height="217">](http://www.36ria.com/wp-content/uploads/aptana4.jpg)
根据你自己的需求，设置项目名和文件路径。
点击“next”后选择你需要的库（如果没出现，请重启下aptana）
[<img class="alignnone size-full wp-image-737" src="http://hiphotos.baidu.com/flftfqwxf/pic/item/d8f56a392e473b71b9998fa8.jpg" alt="" width="245" height="135">](http://www.36ria.com/wp-content/uploads/aptana5.jpg)
创建完项目后，默认在项目下有二个页面。一个是首页，一个jquery的demo页面。
到这时，项目已经加入了jquery库，但在使用的时候却很可能发现没有代码提示，解决办法：
<span style="color: #3d3d3d;">window→preferences</span>→<span style="color: #3d3d3d;">aptana→editors→javascript→code assist</span>
<span style="color: #3d3d3d;">在javascrpt envirconments点击你需要提示的库,</span>
如果你觉得找起来特别麻烦，那么可以在<span style="color: #3d3d3d;"><span style="">window</span><span style="">→</span><span style="">preferences</span></span><span style="">→</span><span style="">头部输入框中直接输入</span><span style="">“code assist”，</span>
系统会自动帮你找到位置
<p class="msonormal" style="margin: 0cm 0cm 7.8pt; text-indent: 18pt; line-height: 150%;"> 
<p class="msonormal" style=""> <span style="color: #3d3d3d;"><span style=""> </span><span style="">这样就 完成自动提示功能了 <span style="">体验一下吧很强大的</span></span></span>