views:

19

answers:

0

How can I setup Netbeans to search all .js files in the same directory for declarations and/or usage?

I am just getting my feet wet with Netbeans 6.9 for the first time. As far as I understand, one can't make a pure Javascript project ( http://stackoverflow.com/questions/2926379/pure-javascript-projects-in-netbeans ), thus I set up a dummy C++/C project, and then added to Favorites my bigproject/exe/scripts directory where .js files reside.

I can search within single .js files fine.

What I want is right click(or hotkey) on a function and see declaration and usage within the larger context (in this case one directory).

For example: I have a globals.js file and I want to check occurences of each variable in other .js files.

This is for a largish Javascript project (~50 files, ~50k lines).

If Netbeans does not work out, back to the old way of Gedit and grep I go...another option was Eclipse with Aptana plugin, but I did not like it too much.

PS Javascript in this instance is used for application scripting not Web(but that shouldn't make any difference).

PSS Using Ubuntu 10.04 , but can run Windows 7, if need be.