User manual

Your STVD graphical environment UM0036
46/385 Doc ID 7705 Rev 11
File folding
This feature allows you to hide or display sections of C source code. Folds are created
automatically for comments and {} braces as you write your code.
Figure 19. File folding display and controls
Folds are indicated in the margin by a minus (-) symbol and a vertical line ending in a short
horizontal leg (see 1 & 2, Figure 19). Folded/hidden sections of code are indicated by a plus
(+) sign and an unbroken horizontal line (see 3, Figure 19). When nested within another
fold, the nested fold begins with the minus symbol and ends with a short, diagonal line.
Margin features
The Editor window margin offers several standard and advanced features to help you view,
navigate and debug your source files, including line numbering, bookmarks and file folding.
You can customize the Editor window to display or hide these features. For more
information, refer to Section 3.7: Customizing your work environment on page 60.
Standard features include line numbering that you can choose to display and print, and line
selection.
When line numbering is enabled, each line ending in a return is numbered. Wrapping of
lines does not change the line numbering.
Margin line selection allows you to select complete lines by clicking the left button on your
mouse and dragging the cursor in the left margin as shown in Figure 20. Selecting lines in
this way ensures selection of the entire line. The right side of the margin is also used to
enable/disable instruction breakpoints (see Section 5.4: Editor debug actions on page 169).
However, Margin line selection can be set to use the entire left margin (see Section 3.7:
Customizing your work environment on page 60). When the Margin selection option is
checked in the Edit/Debug tab of the Options window, the margin can no longer be used to
enable/disable instruction breakpoints.