[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Collapse]CodeRush
  System Requirements
  Improve Performance
 [Expand]Features by Language
 [Expand]Getting Started
 [Expand]How To
 [Expand]Coding Assistance
 [Collapse]Navigation and Search Tools
   Code Places
   Search for a Code Symbol
   Navigate Through Files
  [Expand]Navigate To
   Navigate and Search in Compiled Code
   Navigate to Symbol Declaration
   Navigate to XAML Element
   Structural Navigation
   Find References
   Markers and Bookmarks
 [Expand]Static Code Analysis
 [Expand]Visualization Tools
 [Expand]Code Style Assistance
  Building Assistance
  Debugging Assistance
 [Expand]Refactoring Assistance
 [Expand]Unit Testing Assistance
 [Expand]Decompiling Tools
 [Expand]Configuration Options
 [Expand]Extensibility
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Find References

CodeRush provides Tab to Next Reference and References window features which help you find references to a selected type or identifier.

Expanded Tab to Next Reference

Tab to Next Reference allows you to jump between references to a selected identifier or type.

How to Use

  • Place the caret in an identifier or type and press Tab.

    CodeRush underlines all references and moves the caret to the next one.

  • Press Tab again, if the next reference is not the one you are looking for. You can press Tab multiple times until you reach the desired reference.

When you reach the last reference, press Tab to navigate to the first instance.

  • Press Shift+Tab to navigate to the previous reference.

  • Press Esc to navigate back to the start position and remove underlines from references.

Note

Tab to Next Reference searches for references in the entire solution. If CodeRush finds the next reference in the closed file, it opens this file and places the caret to the found reference.

Expanded References Window

The References window shows references found in the solution and allows you to navigate through results.

Search for References

  • Place the caret in an identifier or type.

  • Open the References window.

Press Shift + F12 or choose CodeRush | Navigate | Find All References menu item.

The References window shows references to a selected identifier or type.

The References window supports the following operations.

Navigate to Reference

  • Press F8 to navigate to the next item.

  • Press Shift + F8 to navigate to the previous item.

The References window shows the surrounding code for a selected item in the preview and code editor.

Group Items

CodeRush can group references by any combination of the following entities:

  • Project
  • Directory
  • File
  • Namespace
  • Type (class, interface, etc.)
  • Member

The image below shows Project, Directory, and Type nodes in the References window.

Filter by Operation Types

CodeRush allows you to filter items by the following operation types:

  • Read
  • Write
  • Instantiations (New Instances)
  • All

The image below shows the selected Write item in the toolbar's drop down box to filter items by writes.

Filter by Text

Enter text in the search box to remove items that do not contain that text within their entry.

The image below shows items filtered by the word "add".

Multiple Sessions

The References window supports sessions that allow you to switch between the search results when CodeRush performs multiple searches.

Place the caret in an identifier and click the New Search button to create a new session.

CodeRush creates a new tab filled with identifier references and keeps the previous search results untouched in a separate tab.

Refresh Results

CodeRush can overwrite the search results in the current tab (session).

Place the caret in an identifier and click the Refresh button.

Note

CodeRush refreshes the active session when you reopen the References window.

Is this topic helpful?​​​​​​​