Support navigating to index.js by module name

Hi, I have found that `Navigate->File` function does not support navigating by the module name when an `index.js` is present.

while VS Code supports that,

I think this feature comes very handy, because we often actually want to navigate to the `index.js` file by the module name, directly searching for `index.js` gives too much redundant results.

0
1 comment

Please vote for https://youtrack.jetbrains.com/issue/WEB-24112

But I must say that I don't think that it will be ever implemented. Navigate | File is intended to be used for searching for file by name. It is not a JavaScript module search, it's a file search. Returning index.js when looking for router would be counter intuitive here, IMO (note that Navigate | File is a platform-wide functionality, common for all IDEA-based IDEs).

You can enter router/ instead of router to find your module folder

 

 

0

Please sign in to leave a comment.