JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Find referenced code

Last modified: 23 September 2024

This command helps you find any outgoing references within a certain scope, which can be as narrow as a function or as large as a project.

This command comes in handy when you are going to move a class or a method to another place. You will be able to use the list of outgoing references to estimate additional changes that the move will require.

Consider the ExternalSymbols class below. If you run the command on the constructor, the search result will be a single usage of the method Divide, because it is defined outside the constructor. If you run the command on the class, the search result will be the usage of System.ArgumentOutOfRangeException, because the rest is defined inside the class.

JetBrains Rider: Finding external usages of symbols in the selected scope