|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
|
2 <html lang="en"> |
|
3 |
|
4 <head> |
|
5 <meta http-equiv="Content-Language" content="en-us"> |
|
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
7 <title>C/C++ Find/Replace</title> |
|
8 <link rel="stylesheet" type="text/css" href="../help.css"> |
|
9 </head> |
|
10 <h1>C/C++ Find/Replace</h1> |
|
11 <p><b>Ctrl+F</b> (or <b>Edit > Find/Replace</b>) displays the <b>Find/Replace</b> dialog. |
|
12 Here you can specify text to search for and optionally text with which to replace it. |
|
13 </p> |
|
14 <p><img src="../images/find_replace_dialog.png" alt="Find and Replace Dialog Box" ></p> |
|
15 <p>You can specify:</p> |
|
16 <ul> |
|
17 <li>The direction (forward or back from the current cursor location)</li> |
|
18 <li>The scope (<b>All</b> for the whole file or <b>Selected Lines</b> to search only |
|
19 within the highlighted area)</li> |
|
20 <li>Whether the search is <b>Case Sensitive</b> or <b>Whole Word</b>. |
|
21 You can also specify whether the search wraps at the end of the file.</li> |
|
22 </ul> |
|
23 |
|
24 <p>If you close the <b>Find/Replace</b> dialog with text in the <b>Find</b> field, |
|
25 you can use <b>Ctrl+K</b> (or <b>Edit > Find Next</b>) or |
|
26 <b>Ctrl+Shift+K</b> (or <b>Edit > Find Previous</b>) to go to the next |
|
27 occurrence of that text. |
|
28 The directions for "Next" and "Previous" |
|
29 are not affected by the <b>Direction</b> setting in the <b>Find/Replace</b> dialog. |
|
30 </p> |
|
31 |
|
32 <p class="note"><span class="notetitle">Note: </span> |
|
33 Wildcards are not currently supported for searches.</p> |
|
34 |
|
35 <h2>Incremental Find</h2> |
|
36 |
|
37 <p>You can also choose <b>Incremental Find</b> from the <b>Find/Replace</b> dialog. |
|
38 With this option selected, each letter you type in the <b>Find</b> field |
|
39 causes the editor focus to move to the first complete occurrence of the text |
|
40 you are typing. |
|
41 You can also use incremental find by pressing <b>Ctrl+J</b> (<b>Edit > Incremental Find</b>). |
|
42 In this case, the text you type appears in the Status Line at the bottom of |
|
43 the Eclipse window. |
|
44 </p> |
|
45 |
|
46 <p class="note"><span class="notetitle">Note: </span> |
|
47 The settings in the <b>Find/Replace</b> dialog do not affect the operation |
|
48 of incremental find in the Status Line.</p> |
|
49 |
|
50 |
|
51 <p> |
|
52 <img src="../images/rh03_04.gif" ALT="IBM Copyright Statement"><br> |
|
53 <img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" > |
|
54 </p> |
|
55 |
|
56 |
|
57 </body> |
|
58 </html> |