问题
I'm using RubyMine 3.1 to develop a Rails3 app and today I switched from Prototype to jQuery for my UJS needs.
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.
What else should I do to get the JavaScript code completion & Co. tailored to jQuery?
(related to: Remove Prototype support from RubyMine: how to?)
回答1:
This article to enable jQuery code completion in RubyMine describes these steps:
- go to Settings, then JavaScript Libraries and add a new library;
- in Usage Scope, enable the library for the current project;
- done!
回答2:
Please watch/vote for the issue in the bug tracker.
来源:https://stackoverflow.com/questions/5237153/rubymine-support-for-jquery