How can I get jQuery code completion in NetBeans?

前端 未结 7 1522
一个人的身影
一个人的身影 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:14

    First go to Tools -> Options -> Miscellaneous and click on the Javascript tab, make sure the targeted browsers are configured properly, code completion changes by the minimal version of the targeted browsers to make sure that the functionality is supported.

    You also need to add the jquery js file to your project so netbeans would be able to parse it and to properly add code completion.

提交回复
热议问题