Development Environment    

Finding and Replacing Content Within Files

From the Current Directory browser, you can search for a specified string within files. If the file is open in the Editor, you can replace the specified string in a file.

Finding a Specified String Within a File

To search for a specified string in files:

  1. Click the find button in the Current Directory browser toolbar.

    The Find & Replace dialog box appears. This provides the same features as the Find & Replace dialog box accessible from the Editor/Debugger.

  1. Complete the Find & Replace dialog box to find all occurrences of the string you specify.
  2. Click Find.

    Results appear in the lower part of the Find & Replace dialog box and include the filename, M-file line number, and content of that line.

  1. Open any M-file(s) in the results list by doing one of the following:

    The M-file(s) opens in the Editor, scrolled to the line number shown in the results section of the Find & Replace dialog box.

  1. If you perform another search, the results of each search are accessible via tabs just below the current results list. Click a tab to see that results list as well as the search criteria.

Function Equivalent.   Use lookfor to search for the specified string in the first line of help in all M-files on the search path.


 Opening, Running, and Viewing the Content of Files Replacing a Specified String Within Files