Customizing the Behavior of Home and End Keys

You can configure how the Home and End keys move the cursor in the editor as follows:

  1. In the IDE, click Tools > Options.
  2. Expand Text Editor > Micro Focus COBOL and then click Margins.
  3. Check or uncheck Pressing home/end moves caret to the beginning/end of the area.

    When the option is unchecked:

    • Pressing Home repeatedly first positions the cursor at the start of the writing area, and then at the beginning of the line.
    • Pressing End positions the cursor at the end of the line.

    When the option is checked:

    • Pressing Home repeatedly first moves the cursor immediately before the first non-white space in the current area, then at the beginning of the area, or to the first non-white space in the preceding area.
    • Pressing End repeatedly first moves the cursor immediately after the last non-white space in the current area, and then at the start of the following area.