Code Explorer

Frozen Content

The following content has been imported from Legacy Help systems and is in the process of being checked for accuracy.

Function

The Code Explorer panel provides a visual summary of all identifiers (Define statements, Variables, Routines (functions) or Labels) that are used in the active source document (*.C, *.asm, *.h) for an embedded software project (*.PrjEmb).

Content and Use

The information that appears in the Code Explorer panel depends on the type of source document currently active in the design editor window. For high-level source code documents (*.C) and header files (*.h), identifiers are grouped under the following top-level folders:

  • Defines - includes all identifiers declared in the active source document that have been defined as constants using a #Define statement
  • Routines - includes all functions declared in the active source document. For each function, any parameters passed to the function or variables local to it are also listed
  • Variables - includes all global variables declared in the active source document

If local variables are declared for a function, they will appear listed in a variables sub-folder, under that function.
For low-level source code documents (*.asm), the following folders will be displayed:

  • Defines - includes all identifiers (symbols) declared in the active source document that have been permanently assigned a value using the .equ directive
  • Labels - includes all labels declared in the active source document

Unique icons are used to distinguish between the various identifiers:

-

Defines

-

Function

-

Function parameter

-

Variable (local or global)

-

Label

Double-clicking on an entry in the panel (or selecting it and pressing ENTER) will jump to the corresponding area of code in the design editor window, placing the text cursor to the immediate left of the identifier.

Right-click Menu

The right-click pop-up menu for the panel provides the following commands:

  • Sort by declaration order - display all folders and identifiers therein in the order in which they are actually declared in the source document
  • Sort alphabetically - display all folders and identifiers therein in alphabetical order.

Notes

  • Direct filtering is available, allowing you to quickly jump to an entry by directly typing within the panel.

To use this feature, click within the panel and type the first letter of the entry you wish to jump to. The first entry in the panel starting with the letter you type will become selected and the letter will be highlighted to show that filtering of the panel content is based upon it, as illustrated in the example below:

If the panel contains multiple identifier entries starting with the same letter, narrow your search by typing additional letters as required.
To clear the current filtering, allowing you to enter a different starting letter, press ESC. Use the BACKSPACE key to clear the previously entered filter characters, in sequence.
Note: The feature will find identifier entries listed in folders and sub-folders that are currently collapsed, expanding such folders where necessary.

  • The keyboard shortcuts Up Arrow and Down Arrow can be used to select the previous and next entry in the panel, respectively. Stepping up or down using these shortcuts will clear any direct filtering currently applied.

See Also

You are reporting an issue with the following selected text and/or image within the active document: