Searching for C/C++ elements
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
Including paths and symbols.
See C/C++ search, for more information on:
- What you can search for
- How to limit your search
- How to use wildcard characters in your search
- Syntax examples
To search for an element in your project:
- Do one of the following:
- In the C/C++ Projects view, select the files and/or projects that you want
to include in your search.
- In the C/C++ Projects view or in the Outline view, select the element
that you want to search
for.
In the Search dialog box, the Search string box will be populated with the
selected element name and type.
- In the C/C++ editor select the name of the element that you want to search for.
In the Search dialog box, the Search string box will be populated with the
selected element name.
- Click Search > C/C++.
- In the Search string box, type a search string.

- To make your search case sensitive, select the Case sensitive box .
- Select an element in the Search For box.
- Select a search limiter in the Limit To box.
- Do one of the following:
- To search all projects in your workspace, select Workspace .
-
To search selected resources, select Selected Resources.
- To search a predefined group of resources in your workspace, select Working Set
.
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.
For more information, see:
Workbench User Guide > Concepts > Views > Search view
Workbench User Guide > Tasks > Navigating and finding resources
C/C++ search
CDT Projects
Open Declarations
Navigate to C/C++ declarations
C/C++ search page, Search dialog box