Opening declarations

You can use the Open Declaration action to open the declaration of a selected C/C++ language element.

About this task

The selection must be a valid reference to a structure, method call, or a field reference for the editor to open the declaration. For example, you can select a method call and invoke the Open Declaration action to open the file that contains the declaration of the method.
Note: The search path for the declaration is determined by the system and local include paths that are defined for the open file in the editor.

Procedure

To invoke the Open Declaration action, do any of the following in the Remote C/C++ Editor:
  • Right-click the reference to open the pop-up menu and select Open Declaration.
  • Select the reference and press F3.
  • Press Ctrl and click the reference.

Results

The declaration of the selected C/C++ language element is located and the file that contains this declaration is opened.