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
请先登录再写评论。
Hello Jack,
Structure view for JavaScript is definitely supported in IntelliJ IDEA. What
kind of project do you see the problem in?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
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
Does your file located under Project content root?