|Desktop Tools and Development Environment|
With the incremental search feature, the cursor moves to the next or previous occurrence of the specified text in the current file. It is similar to the Emacs search feature. Incremental search is also available in the Command Window--see Incremental Search.
To use the incremental search feature in the Editor/Debugger, follow these steps:
p, the first occurrence of that letter after the cursor is highlighted. In the example shown, the cursor is in the middle of line 2, so the first occurrence of
problemon line 2, is highlighted.
Incremental search is case sensitive for uppercase letters. In the above example, searching for uppercase
P, would instead find the
Prepare on line 3.
When you type the next letter in the term you are searching for, the first occurrence of the term becomes highlighted. In the example, when you add the letter
l to the
p so that the incremental search field now has
plot on line 8 is highlighted. When you add
ot to the term in the incremental search field, the whole word
plot in line 8 is highlighted.
plotin the file, press Ctrl+S. To find the previous occurrence of the text, press Ctrl+R.
Failingappears in the incremental search field. Modify the search term in the incremental search field and try again.
If you press Ctrl+S or Ctrl+R after displaying the blank incremental search field, the search term from your previous incremental search appears in the field. Then the Back Space key deletes the entire previous search term, rather than just the last letter.
|Finding Text in Files||Opening a Selection in an M-File|
© 1994-2005 The MathWorks, Inc.