Code Editor basics
The active document is displayed in the Document workspace. If this document is a code document, such as a 4gl file, the Code Editor functions are active.
Multiple documents can be open, in tabbed windows, with the filename on the tab.
By default, line numbers are displayed at the left side of the window.
The status bar at the bottom of the window contains the selection range (line and column of the start and end position), the format (Windows®, UNIX™, Mac®), and the mode (insert, overstrike).
The Code Structure view displays information about the structure of the active file. Clicking on an element in the Structure view will display and highlight the corresponding lines in the Editing window.
vi Editor
You can change the editor to use vi commands. Select
to switch the editor.Syntax highlighting
The elements of the program are visually highlighted. Language key words, strings, variables and comments are each colored differently, making the program structure easier to understand. Select
to customize the behavior and color.Syntax errors
An error mark in the gutter flags syntax errors as they occur. Select the error mark to display a message concerning the error. The error message and line number also display in the Document Errors tab in the output.
Menu of options
Use the Edit menu or right-click in document to display some options for selecting, searching, and editing. The available accelerator keys are documented in the Keyboard Shortcuts page.
Document Format
You can change the document format (Windows, UNIX, MAC) by selecting
.Integrated diff
The Using the Diff tool tool is integrated into Code Editor.
Folding text
Folding condenses portions of text based on the scope of statements.
Click the + or - symbols in the left gutter to fold or unfold all corresponding lines. Use the
menu or right-click context menu options to , , or .Finding declarations
Press the CTRL key while clicking on a function or variable name to find the declaration of that function or variable.
Finding callers of a function
To find out where a function has been called, right-click on the function name and select Callers.
Square selection
Press the ALT key while selecting text with the mouse to select a rectangle of text, instead of entire lines. See Selection keymap.