Display the Symbols in a File

HomeOverview/Tasks

You can display an outline of all the symbols in a specific source file and filter the information that is displayed.

To display the symbols in a file

  1. Open the source file that you want to examine. If it is already open, click that window to move the focus there.

    -or-

    Select the file in the Project Workspace window.

  2. On the Tools menu, click Source Browser.

    The Browse dialog box appears.

  3. In the Select Query list box, click File Outline.

  4. Click OK.

    The File Outline browse window appears, with classes and functions displayed at the top of the left pane, as shown in the following figure.

Browse Window with File Outline

The following table describes the window elements, the function of each element, and the user's actions.

File Outline Window

Window element Function Action
Left pane Lists the symbols (classes, functions, data, macros, and types) for the selected file. One or more codes identify each symbol. Select a symbol.
Right pane Lists the available definitions and references for the symbol selected in the left pane. Double-click the definition or reference you want to see.
Pushpin Determines whether or not the window is held open or allowed to close. The window remains open when the pin is pushed in. Select to push or pull the pin.
Filter buttons Filter the symbols shown in the current display. For more information, see Filtering Browse Information for Files. Select to toggle filter.

Tip   You can display symbols in multiple files by using the asterisk as a wildcard character in the file name. If you type a file name specification followed by the asterisk wildcard but no extension (oc*, for example), the search finds files without extensions, such as "oc1," but not files with extensions, such as "oc1.cpp."