Getting jQuery auto complete to work IntelliJ 10.0.3
Greetings! I set 开发者_开发知识库up jQuery as a global library in IntelliJ 10.0.3 but I can't get it to auto-complete jQuery methods :-(
I followed this guide to JavaScript Libraries in Intellij IDEA 10, but with no luck. Thanks in advance
After specifying the global jQuery library you need to make sure that it is defined in your file completion scope: 1. Open Settings|JavaScript Libraries|Usage Scope. 2. Find the file you want to set the completion for at the right pane. 3. Select jQuery library from drop-down list (it must be checked). That should be it. This is not needed if your jQuery library is either under the project root or have been downloaded using "Download library" intention. In the latter case the library is "attached" to your project file automatically but for other files you have to set it manually. Note that you can specify the jQuery library for the entire project or any of its subdirectories using the same "Usage Scope" tree.
精彩评论