WebStormRequireJsPlugin icon indicating copy to clipboard operation
WebStormRequireJsPlugin copied to clipboard

CTRL + Click Support for Dependencies

Open machineghost opened this issue 9 years ago • 0 comments

If I have:

define(['foo'], function(foo) {
    foo.bar();
});

and I CTRL + Click on bar, IntelliJ will take me to the definition of bar (unless there are multiple bars in my codebase, in which case it will let me pick which one I want).

However, if I CTRL + Click on foo IntelliJ will simply take me to the top line (the function(foo) part). In theory though the plugin should know exactly which file is associated with foo ('foo.js'), so it should be able to take me to that file instead.

The RequireJS plug-in is already really great (I love how it can catch typos in my dependency paths), but it would be even greater if it could handle the CTRL + Click case for Require dependencies. Any chance of that happening?

machineghost avatar Oct 19 '15 21:10 machineghost