Sign in Join
Wiki copytemporary

IDE Window: Find or Rename identifier

Deutsch · English · Français · Suomi

This dialog is reached by placing the cursor on an identifier in the source editor, right-clicking and choosing either "Find > Find Identifier References..." or choosing "Refactoring > Rename Identifier...". Alternatively, this dialog can be reached by choosing from the Main Menu, "Search > Find Identifier References...".

When the dialog is opened, the source editor will first jump to the declaration of the identifier then show the dialog. Hint: You can jump back via Search / Jump Back.

Setup the search options and start the search. A progress window will popup up with a button to abort. When the search finished the Search Results window will open presenting the result. If the identifier was renamed the result will be empty.

Identifier

In the caption of the groupbox the searched identifier is shown. In the listbox below the unit and include files of the declaration is presented, so you can make sure, the right identifier is replaced.

Rename to

Set here the name of the new identifier.

Search where

Note: This will be disabled if the identifier is only visible in the current unit. For example when it is a private or local variable.

In any case the IDE will always skip binary files (using the FileIsText function).

Additional files to search

Specify here additional files to search. You can give multiple files and directories separated by semicolon. Macros are allowed and wild masks * and ? are allowed in the last part of the file name. Relative paths are expanded with the project directory. Examples:

Search in comments too

The codetools will replace the identifier in all comments as well.


From the Free Pascal wiki, page "IDE Window: Find or Rename identifier", as it stood on 2021-01-26 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.