How can I open definition of a function or header file from within the editor?

The CodeWarrior Eclipse IDE uses an indexer to build index of all sources in the background. To open definition, you need to configure indexer preferences. The indexer can be configured per project or per workspace basis.

  1. Select Window > Preferences .

    The Preferences dialog box appears.

  2. Type indexer as the filter text to narrow down the list of preferences.
  3. Select C/C++ > Indexer .

    The Indexer page appears in the right panel.

    Figure 1. Indexer Page

    Indexer Page

  4. From the Select indexer drop-down list, select the Full C/C++ Indexer option.
  5. Click OK .
  6. Right-click the project with which the source file is associated in the CodeWarrior Projects view and select Index > Rebuild .
  7. Press F3, definiton will open.
    Figure 2. Function Definition

    Function Definition

  8. Press F3 again to switch to the function declaration.
    Figure 3. Function Declaration

    Function Declaration

  9. Press ALT + Left to switch to the original location.

Repeat step 7-9 to open function declarations and definitions of other functions in the source file.