No Structure in JavaScript Editor?

I like that IDEA 10 (10.0.3) supports JavaScript coding with the many of the same helpful feature I get in the Java editor (i.e. code completion, etc.)

However, I notice there's nothing displayed in the Structure tool window.  Not sure why all the functions in the JS file can't be shown.

Without it, I have scroll around, doing a sequential search to find a method.

Should there be something showing in the Structure window? If so, is there a configuration step I need to enable this?

jack

3 comments
Comment actions Permalink

Hello Jack,

Structure view for JavaScript is definitely supported in IntelliJ IDEA. What
kind of project do you see the problem in?

I like that IDEA 10 (10.0.3) supports JavaScript coding with the many
of the same helpful feature I get in the Java editor (i.e. code
completion, etc.)

However, I notice there's nothing displayed in the Structure tool
window.  Not sure why all the functions in the JS file can't be shown.

Without it, I have scroll around, doing a sequential search to find a
method.

Should there be something showing in the Structure window? If so, is
there a configuration step I need to enable this?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

The project is a Java project with web/JSF facets, and Spring facet.  The JavaScript file, named like CustomerSupport.js, has this structure:

------------
var Customer = Customer ? Customer : new Object();

Customer.Ajax = {
    someField : "Field Value",

    someFunction: function() {
      ...
    },

    ...
};
------------

I'm not exactly sure what I expected to see, but I definitely didn't expect to see a blank Structure window.

jack

0
Comment actions Permalink

Does your file located under Project content root?

0

Please sign in to leave a comment.