Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 67ed5a49a3f27b55b0444e3b291581a9d345a2d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">

<head>
	<meta http-equiv="Content-Language" content="en-us">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>C/C++ Find/Replace</title>
	<link rel="stylesheet" type="text/css" href="../help.css">
</head>
<h1>C/C++ Find/Replace</h1>
<p><b>Ctrl+F</b> (or <b>Edit > Find/Replace</b>) displays the <b>Find/Replace</b> dialog.
Here you can specify text to search for and optionally text with which to replace it.
</p>
<p><img src="../images/find_replace_dialog.png" alt="Find and Replace Dialog Box" ></p>
<p>You can specify:</p>
<ul>
<li>The direction (forward or back from the current cursor location)</li>
<li>The scope (<b>All</b> for the whole file or <b>Selected Lines</b> to search only 
within the highlighted area)</li>
<li>Whether the search is <b>Case Sensitive</b> or <b>Whole Word</b>.
You can also specify whether the search wraps at the end of the file.</li>
</ul>

<p>If you close the <b>Find/Replace</b> dialog with text in the <b>Find</b> field,
you can use <b>Ctrl+K</b> (or <b>Edit > Find Next</b>) or 
<b>Ctrl+Shift+K</b> (or <b>Edit > Find Previous</b>) to go to the next
occurrence of that text.
The directions for &quot;Next&quot; and &quot;Previous&quot; 
are not affected by the <b>Direction</b> setting in the <b>Find/Replace</b> dialog.
</p>

<p class="note"><span class="notetitle">Note: </span>
Wildcards are not currently supported for searches.</p>

<h2>Incremental Find</h2>

<p>You can also choose <b>Incremental Find</b> from the <b>Find/Replace</b> dialog.
With this option selected, each letter you type in the <b>Find</b> field
causes the editor focus to move to the first complete occurrence of the text
you are typing.
You can also use incremental find by pressing <b>Ctrl+J</b> (<b>Edit > Incremental Find</b>). 
In this case, the text you type appears in the Status Line at the bottom of
the Eclipse window.
</p>

<p class="note"><span class="notetitle">Note: </span>
The settings in the <b>Find/Replace</b> dialog do not affect the operation
of incremental find in the Status Line.</p>

<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
</p>

<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
</p>

<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
</p>


<p>
<img src="../images/rh03_04.gif" ALT="IBM Copyright Statement" BORDER=0 width="300" height="14"><br>
<img src="../images/ng03_04.gif" ALT="IBM Copyright Statement" BORDER=0 width="324" height="14">
</p>


</body>
</html>

Back to the top