Using tags in your files

If you use the utility ctags to create a tag file, the Editor uses the information to open files and move the cursor based on the name of a function.

To navigate to a function

  1. Choose Edit > Goto.
  2. In the GoTo dialog box, select Function. If the Function field not available, the Editor could not find a tag file.
  3. Enter the name of the function, and click Go. If the function is in the current file, the Editor moves the cursor to the beginning of the function. If the function is in a different file, the Editor opens that file and moves the cursor to the beginning of the function.
  4. Right-click the function name and from the pop-up menu, choose Jump to Function.
  5. Select the function name, right-click the selected function name and from the pop-up menu, choose Jump to Selected Function.

To manually load a tag file in an Editor session

When the Editor starts, it looks for a file called tags. If the tag file has a different name or is in an unexpected location, the Editor may not find it. To manually load a tag file into an Editor session:

  1. Choose Tools > Append TagFile.
  2. Enter the path and filename of the tag file, and click OK.

To remove a tag file from an Editor session

If you want to unload a tag file from an Editor session, choose Tools > Reset Tags. Once you have unloaded a tag file, the Editor no longer uses that file to navigate to functions.

Related topic:


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.