Open declaration

You can select an element name in your code and quickly navigate to its declaration.

Editor View showing Open Declaration option

Open declaration will attempt to navigate to the exact declaration of the selected element. Open declaration requires your file to have the proper include paths set up to the declaration. If for any reason open declaration cannot find the declaration, it will display the following message in the status line:

No declaration was found message.

For more information see Adding Include paths and symbols.

Related concepts
CDT Projects
C/C++ search

Related tasks
Adding Include paths and symbols
Navigate to a C or C++ element's declaration
Navigate to a C or C++ element's definition
Searching for C/C++ elements

IBM Copyright Statement