Is there a way to change the variable or the function name in a CodeWarrior project?

Yes, you can use the Refactoring feature of the CodeWarrior IDE to replace a function or a variable name.

  1. Select the variable or function and select Refactor > Rename from the IDE menu bar.

    The Rename global variable`<variable name>' dialog box appears.

    Figure 1. Refactor Menu

    Refactor Menu

    Figure 2. Rename global variable Dialog Box

    Rename global variable Dialog Box

  2. Specify the new name for the variable.
  3. Specify the scope of refactoring, such as all projects, related projects, project, or working set.
  4. Specify where in the source file you want to make the changes, such as source code, comments, and/or macro definitions.
  5. Click the Preview button to preview the changes.
    Figure 3. Preview Replace Action

    Preview Replace Action

  6. Check or clear a file to accept or reject a change as required.
  7. Click OK .

The specified changes are performed.