Find and Replace Text in Files
In this section...
“Find Any Text in the Current File” on page 24-28
“Find and Replace Functions or Variables in the Current File” on page 24-28
“Automatically Rename All Functions or Variables in a File” on page 24-30
“Find and Replace Any Text” on page 24-32
“Find Text in Multiple File Names or Files” on page 24-32
“Function Alternative for Finding Text” on page 24-32
“Perform an Incremental Search in the Editor” on page 24-32
“Go To Location in File” on page 24-33
Find Any Text in the Current File
You can search for text in your files using the Find & Replace tool.
(^1) Within the current file, select the text you want to find.
2
On the Editor or Live Editor tab, in the Navigate section, click Find , and then
select Find....
A Find & Replace dialog box opens.
(^3) Click Find Next to continue finding more occurrences of the text.
To find the previous occurrence of selected text (find backwards) in the current file, click
Find Previous on the Find & Replace dialog box.
Find and Replace Functions or Variables in the Current File
To search for references to a particular function or variable, use the automatic
highlighting feature for variables and functions. This feature is more efficient than using
the text finding tools. Function and variable highlighting indicates only references to a
particular function or variable, not other occurrences. For instance, it does not find
instances of the function or variable name in comments. Furthermore, variable
highlighting only includes references to the same variable. That is, if two variables use
24 Coding and Productivity Tips