Setting COBOL Editor preferences

You can set preferences that control the appearance and function of the COBOL Editor.

All preferences are accessed by clicking Window > Preferences. Several preferences affect the COBOL Editor. You can also access many of these preferences by opening the COBOL Editor, right-mouse click and from the menu click Preferences.

Setting general editor preferences

The settings under General preference are global settings that apply at the workbench level.
Preference Description For more information
Appearance > Colors and Fonts The text font and color that are used by the editor. Setting colors and fonts
Content Types Edit content types and their associated file names and character sets. You can also associate arbitrary file names or file extensions with content types. Setting content type associations
File Associations Associate the editors with certain file extensions and choose a default editor to use. Associating file types with an editor

Setting options that are specific to the COBOL Editor

The COBOL preference contains settings that are specific to the COBOL Editor. On the Editor preference page, you can define which margins are displayed, where sequence numbers begin, and tab stops, and enable locating matching parenthesis in source files. Other preference pages include the following.

Preference Description For more information
Editor > Margins Specify the margins to be displayed. Setting margins
Editor > Custom tab stops Defined tab stops used in the editor. Setting tabs
Formatter Specify format of code in the editor, such as capitalization, indentation, and line length. Formatting COBOL code elements
Mark occurrences Specify to highlight references for selected elements in the list.
  • User-defined words
  • Procedural statement conditions
  • Procedural statement end phrases
Setting preferences for mark occurrence action
Preprocessor Integration Customize the process for identifying preprocessor statements. Setting preferences for preprocessor statements
Save Actions Configure editor save actions to occur when you save a source or copybook file. Setting preferences for editor save actions
Sequence numbers Manage sequence numbers in your file. Enabling sequence number handling
Syntax coloring Specify the appearance of code syntax in the editor, Setting options for real-time syntax checking
Task Tags Manage task tags that are used within the editor. Setting task tags
Features Modify the list of features that can be added to programs created by the New COBOL Program wizard. Setting preferences for features
Real-time syntax checking Enable real-time syntax that causes programming errors to be identified as you edit the file. Setting options for real-time syntax checking
Templates Manage the COBOL code templates are contributed to the COBOL content assist. Setting preferences for COBOL code templates

Setting options that are specific to data management elements

The Data Management preference contains settings for working with EXEC SQL statements in the editor.

Preference Description For more information
SQL Development > EXEC SQL statements Define options for content assist and real-time syntax checking for EXEC SQL statement in the editor. Setting preferences for EXEC SQL statements

Setting options that are specific to parsing data

The LPEX Editor preference contains settings for the parser.

Preference Description For more information
Parsers Define parser name and class associations to the editor. Setting parser styles

Feedback