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.
  1. The Find dialog box appears. This is similar to the Find & Replace dialog box in the Editor.

  1. Complete the Find dialog box to find all occurrences of the string you specify.
  2. Click Find.
  1. Results appear in the lower part of the Find 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:
  1. The M-file(s) opens in the Editor, scrolled to the line number shown in the results section of the Find 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 Alternative.   Use lookfor to search for the specified string in the help in all M-files on the search path.


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