WebStorm 4.0 EAP 114.282 doesn't recognize javascript classes

When I use Navigate | Class... or press Ctrl+N and search for any javascript class name in my project I always get 'No matches found'. Is this feature for PHP code only? If not then how should I define my classes for WebStorm to recognize them?

Currently all my classes are defined in this form:

(function(){
...
namespace.ClassName = function ClassName(){ /* code */ };
...
}());

I tried the following with the same results:

(function(){
...
function ClassName(){ /* code */ }
namespace.ClassName = ClassName;
...
}());

0
3 comments

This feature is not yet implemented for javascript. You can vote for this issue http://youtrack.jetbrains.com/issue/IDEA-51867.

0
Avatar
Permanently deleted user

Thanks! Done.

0

Goto symbol might work as you expect

0

Please sign in to leave a comment.