RubyMine支持jQuery [英] RubyMine support for jQuery

查看:93
本文介绍了RubyMine支持jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用RubyMine 3.1开发Rails3应用程序,今天我从原型转换为jQuery以满足我的UJS需求。

I'm using RubyMine 3.1 to develop a Rails3 app and today I switched from Prototype to jQuery for my UJS needs.

使用此示例并重新启动RubyMine,所有自动完成建议和代码检查器错误仍然基于Prototype。

After customizing everything using this example and restarting RubyMine, all the auto-complete suggestions and the code inspector errors are still being based on Prototype.

我还应该做些什么才能完成JavaScript代码的完成。有限公司为jQuery量身定做?

What else should I do to get the JavaScript code completion & Co. tailored to jQuery?

(与:从RubyMine删除Prototype支持:如何?

推荐答案

本文在RubyMine中启用jQuery代码介绍这些步骤:


  1. 转到设置,然后转到 JavaScript库并添加一个新的库;

  2. 使用范围中,启用当前项目的库;

  3. done!

  1. go to Settings, then JavaScript Libraries and add a new library;
  2. in Usage Scope, enable the library for the current project;
  3. done!

这篇关于RubyMine支持jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆