How can I get jQuery code completion in NetBeans?

前端 未结 7 1485
一个人的身影
一个人的身影 2020-12-02 15:30

I\'m using NetBeans for PHP.

When I edit a .js file, it gives me javascript code completion.

How can I get it to also give me jQuery

相关标签:
7条回答
  • 2020-12-02 16:32

    For Netbeans 6.7 / 6.8 / 6.9, just follow the guide here:

    Using jQuery to Enhance the Appearance and Usability of a Web Page

    There's a section about half way down called "NetBeans Code Completion and API Support".

    Worked no problem for me.

    Note: "Choose the uncompressed version, i.e., 'Development', before downloading the jQuery library. Using the uncompressed version will allow you to examine the JavaScript code in the editor, and aid in any debugging processes."

    Tip: Tools / Options / Miscellaneous / JavaScript. In the "Targeted Browsers" section, ensure IE is "6 or later". Otherwise, you'll get "Not supported" errors in the code completion pop-up and a lot of the commands will be struck out.

    0 讨论(0)
提交回复
热议问题