The References tool window also known as Find All References
The References tool window is designed to search, navigate and review the identifier references in the entire solution. This is what it looks like:
The References tool window is designed to search, navigate and review the identifier references in the entire solution. This is what it looks like:
To add an assembly reference, you first require a reference to the target project. To get one, you can use the Source Model DXCore service, for example:
ProjectElement projectElement = CodeRush.Source.ActiveProject;
CodeRush has the Highlighting All References feature, based on the Tab to Next Reference feature, with the difference that you do not actually navigate between references. The feature simply highlights the current identifier and all its references. The default shortcut to apply the reference highlighting is Ctrl+Alt+U. Once performed on an identifier, you will see the identifier and its references highlighted in pink:
According to the Embarcadero’s docwiki:
“Sync Edit mode in Delphi allows you to change all occurrences of an identifier when you change one instance of that identifier. When you enter Sync Edit mode, you can tab to each highlighted identifier in your current Code Editor window.”
The difference of the Sync Edit feature in Delphi from the usual Rename refactoring from Refactor! (for example) is that a declaration of an identifier may not exist. In this case the Rename is simple not available.
The SearcherProvider DXCore component returns a custom searcher that is used for renaming in the Rename refactoring, or inside the source code navigation features, such as Tab to Next Reference.