Skip to content
BENIBIX Learn

Find All References

Development🕸️ Code IntelligenceCode Navigation

Also known as Find Usages, Find References, Show References

An editor command. It lists each place in the code a name is used.

Think of it like

It is like asking who took out a book. You get each name on the card.

Example

Before Emma changes how getPrice works, she runs find all references. It lists 6 calls in 4 files, and she checks each one.

Why it matters

A change to one function can break every caller. This shows you all of them first.

Definition

Find all references is an editor command that lists every place a symbol is used. You pick a function, and you get each line that calls it, across all files. It uses the meaning of the code, not just matching text. So a different function with the same name is left out. It is how you check what a change will touch before you make it.
Find all references is one more question the same server can answer for you.

Common mistake

Trusting it for code that builds names at run time. A call made from a string or a config file can stay hidden.

Key takeaways

  1. 1
    Every use. Each line that touches the name.
  2. 2
    By meaning. Same name, other thing: left out.
  3. 3
    Check first. Look before you change.