How to find all references of a selected module in VS Code?

Viewed 1929

Is there a way/shortcut to quickly search for all references of a selected module?

By selected I mean, if I select a file in the explorer view, or if the focus is set on the file in the active editor. Ideally it should be something that is as easy as Shift+F12, but the latter only selects symbols inside a file.

I could iterate over all of the exports using the above shortcut, but what if the file has several exports? Also, the results are not displayed all at once.

Here's an example:

Say I wanted to find the file array.ts, my current workaround would be to search for a Regular Expression pattern — from ["'].*array["'] — which works, but I would like to know if there is a faster way?

0 Answers
Related