mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
87 lines
No EOL
3.9 KiB
HTML
87 lines
No EOL
3.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//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>Searching for C/C++ elements</title>
|
|
<link rel="stylesheet" type="text/css" href="../help.css">
|
|
<script language="JavaScript">
|
|
function changeSize(theImage,wd,ht) {
|
|
wdth=parseInt(theImage.style.width); hght=parseInt(theImage.style.height);
|
|
if ( !(wdth==(wd*2)) ) {wdth=wd*2; hght=ht*2;}
|
|
else {wdth=wd;hght=ht;}
|
|
theImage.style.width=wdth; theImage.style.height=hght;
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Searching for C/C++ elements</h1>
|
|
|
|
<p>It is recommended that you perform searches on successfully compiled
|
|
programs to ensure the accuracy of search results. It is important to familiarize yourself with the correct search syntax
|
|
to use to complete an effective search. It is also important to ensure that
|
|
include paths and symbols are correctly defined. For more information, see
|
|
<a href="cdt_t_proj_paths.htm">Including paths and symbols</a>.</p>
|
|
|
|
<p>See <a href="../concepts/cdt_c_search.htm">C/C++ search</a>, for more information on:</p>
|
|
|
|
<ul>
|
|
<li>What you can search for</li>
|
|
<li>How to limit your search</li>
|
|
<li>How to use wildcard characters in your search</li>
|
|
<li>Syntax examples</li>
|
|
</ul>
|
|
|
|
<p>To search for an element in your project:</p>
|
|
|
|
<ol>
|
|
<li>Do one of the following:</li>
|
|
<ul><li>In the C/C++ Projects view, select the files and/or projects that you want
|
|
to include in your search.</li>
|
|
<li>In the C/C++ Projects view or in the Outline view, select the element
|
|
that you want to search
|
|
for.</li>
|
|
<p>In the Search dialog box, the Search string box will be populated with the
|
|
selected element name and type.</p>
|
|
<li>In the C/C++ editor select the name of the element that you want to search for.</li>
|
|
<p>In the Search dialog box, the Search string box will be populated with the
|
|
selected element name.</p></ul>
|
|
<li>Click <b>Search > C/C++</b>.</li>
|
|
<li>In the <b>Search string</b> box, type a search string.<br>
|
|
<img src="../images/search.png" width="256" height="192" onClick="changeSize(this,256,197);" alt="Screen capture of Search dialog box" title="click to toggle image size"></li>
|
|
<li>To make your search case sensitive, select the <b>Case sensitive</b> box.</li>
|
|
<li>Select an element in the <b>Search For</b> box.</li>
|
|
<li>Select a search limiter in the <b>Limit To</b> box.</li>
|
|
<li>Do one of the following:
|
|
<ul><li>To search all projects in your workspace, select <b>Workspace</b>.</li><li>
|
|
To search selected resources, select <b>Selected Resources</b>.</li>
|
|
<li>To search a predefined group of resources in your workspace, select <b>Working Set</b>.</li></ul>
|
|
<p>Search results are displayed in the Search view. Double-click a search
|
|
result in the Search view to open the corresponding resource. The
|
|
search element is highlighted.</p>
|
|
</ol>
|
|
<p>For more information, see:
|
|
<li><b>Workbench User Guide > Concepts > Views > Search view</b></li>
|
|
<li><b>Workbench User Guide > Tasks > Navigating and finding resources</b></li>
|
|
</ul>
|
|
|
|
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
|
|
<br>
|
|
<a href="../concepts/cdt_c_search.htm">C/C++ search</a><br>
|
|
<a href="../concepts/cdt_c_projects.htm">CDT Projects</a><br>
|
|
<a href="../concepts/cdt_c_open_declarations.htm">Open Declarations</a></p>
|
|
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
|
|
<br>
|
|
<a href="cdt_t_open_declarations.htm">Navigate to C/C++ declarations</a></p>
|
|
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
|
|
<br>
|
|
<a href="../reference/cdt_u_search.htm">C/C++ search page, Search dialog box</a></p>
|
|
<p> </p>
|
|
<img src="../images/ng03_04.gif" ALT="IBM Copyright Statement" BORDER=0 width="324" height="14">
|
|
|
|
</body>
|
|
|
|
</html> |