Open main menu

RAD Studio β

Finding References (Delphi)

Go Up to Refactoring Procedures Index


The Find References refactoring feature helps you locate any connections between a file containing an identifier you intend to rename and other files where that identifier also appears. A preview allows you to decide how you want the refactoring to operate on specific targets or on the group of references as a whole.

This section explains the use of this feature for Delphi.

To create a Find References list:

  1. In the Code Editor, select an identifier.
  2. Choose Search > Find References or Search > Find Local References.

    Note: You can also select an identifier, and then click Find References <identifier> or Find Local References <identifier> on the context menu.

Using the Find References Pane

To clear results from the Find References pane:

  1. Select a single reference or a node.
  2. Click the Remove Find Results icon   at the top of the Find References pane, to delete the selected item and any item in that result set.

Note: Deleting items from the Find References pane does not delete them from your actual code files or your project.

To clear all results from the Find References pane:

  1. Select any item in the pane.
  2. Click the Remove All References icon   at the top of the Find References pane. This action clears all results from the pane.

Note: Deleting items from the Find References pane does not delete them from your actual code files or your project.

Note: If you continue to perform Find References operations without clearing the results, the new results are appended in chronological order to the existing results in the pane.

To find a referenced entity in the source code

  • In the Find References pane, double-click a corresponding entry. This opens the Code Editor positioned on the source code of the selected entry.

See Also