Pages

Tuesday, November 1, 2011

ExtJS Code Completion / Intellisense in Netbeans

Here's how to get ExtJS code completion / intellisense working in Netbeans (6.9.1):

  1. you need to reference extjs scripts locally, and not from a remote server
  2. use the ext-all-debug-w-comments.js version
  3. in netbeans, on the menu, go to tools -> options -> miscellaneous -> javascript tab -> and set the targeted browsers to the highest version numbers and set javascript version to 1.8
  4. reference ext-all-debug-w-comments.js in your index file
<script src="ext/ext-all-debug-w-comments.js"></script>


Ext JS Netbeans intellisense

7 comments:

  1. So how's it working for you in NetBeans? I tried some time ago but I was not too happy, so I stuck to Notepad ++ :P

    ReplyDelete
  2. itsnot working for me. I have follow the steps.

    i have netbean 7.0.1 and im on window 7 32b.

    ReplyDelete
  3. Somehow even i am also unable to do it. Can someone brush up this one again.


    Business Degree Programs

    ReplyDelete
  4. It works well for me, even if some functions are not found. I also tried to create a new php project: I created a folder 'lib' with another one in it as 'Extjs'. The new html file created also get in count the library, avoiding the call to "ext/ext-all-debug-w-comments.js".

    ReplyDelete
  5. So, i will have to look for a workaround.
    My projects index file just contains code for the PHP framework to start up. The line for loading ExtJS is
    *script type="text/javascript" src="{$baseurl}/javascript/{$extjsdir}/{$extjsfile}"**/script*
    This is because these values are in the config to switch versions easily.

    It would be nice, NetBeans would have a kind of javascript library reference, where you can enter the library file to be parsed.

    ReplyDelete
  6. Working well with me. Netbeans 7.2 with Yii Framework.
    Thanks a lot for this article.
    Have a nice day!

    ReplyDelete
  7. In Netbeans 7.2 you can just put the file in your WEB-INF (no script tag is needed). If it bothers you that it will be in some war then you can have it ignored in commits or removed in Jenkins (or whatever) before building your app.

    ReplyDelete