Skip to content

Context menu 'Find all references' on files from file explorer. #66150

Closed

Description

There was an issue, but its status is unclear.

#6625
I am surprised why there are so little likes %)

Cases:

  • Node.js/JavaScript - all places where the current file is required by require.
    BTW: if I use "Find all references" on `require('./some-file.js') - VS Code does show me them. So the ability itself is already supported but there is no interface in file explorer.

  • Node.js/TypeScript - all places where the current file is imported.

  • C++ - all places where the file is included.

  • Which HTML uses the current JS file.

  • Etc.

For many years I used WebStorm which supports this. But in VS Code I have no idea how to find the place where some file is used but global searching it by some regexp. I was looking for some plugins and workarounds for 2 hours and found nothing %).

I tried to bind shortcut:

  {
    "key": "f12",
    "command": "references-view.find",
    "when": "filesExplorerFocus"
  }

but it runs last references search and not search for current file.

There is a question on SO, but no answer:
https://stackoverflow.com/questions/53267307/how-to-find-all-references-of-a-selected-module-in-vs-code

Activity

  1. added
    javascript
    on Jan 7, 2019
  2. added
    feature-request
    on Jan 17, 2019
  3. alexilyaev commented on Jun 12, 2019

    @alexilyaev

    Aleksey Chemakin (@Dzenly) Was there any progress on this?

    For me, in simple ES6 code with export and import in several files, there's no way to find the references.

    If I right click the exported symbol and click Find All References, it will only find references in the open files in the editor, which is not so useful.

  4. Dzenly commented on Jun 13, 2019

    @Dzenly
    Author

    Alex Ilyaev (@alexilyaev) I don't know. Mainly I use WebStorm, and from time to time I try VS Code, report another feature request, and continue to use WebStorm.

  5. added this to the Backlog milestone on Jan 23, 2020
  6. added
    upstream-issue-linked
    on Oct 14, 2020
  7. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jan 5, 2021
  8. added
    verification-needed
    and removed
    verification-needed
    on Jan 25, 2021
  9. locked and limited conversation to collaborators on Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestinsiders-releasedjavascripton-testplanupstream-issue-linked

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions