You specify options for the indents and for the Tab key in the COBOL text editor in the
Tools > Options > Text Editor >
COBOL, and on the
Tabs page.
- Indenting
-
- None
- Disables the automatic indenting of new lines of code.
- Block
- Indents a new line at the same tab position as the previous line.
- Smart
- Indents new lines of code according to the rules of the COBOL language.
- Tab
-
- Tab and indent size
- Defines the number of spaces inserted when you press
Tab or
Enter. When programming in COBOL, the compiler expects the meaningful code to start from column eight. This is why it is convenient to have the tab character replaced by four spaces to reduce the risk of introducing compilation errors in the code.
- Insert spaces
- Replaces the tab character with the number of spaces specified in the
Tab and indent size field.
- Keep tabs
- Inserts a tab character when you press
Tab.