Configuring Word Wrap with Smart Edit Mode

The Smart edit mode controls the word wrapping and the indentation in the different COBOL areas. It is the default mode in the editor.

Note:
  • The behavior defined with this setting depends on the source format of the code (fixed, variable or free).
  1. Click Tools > Options.
  2. Expand Text Editor and then expand Micro Focus COBOL.
  3. Click Margins.
  4. Configure Smart edit mode and the wrap options as needed:
    • When Smart edit mode is not checked, the lines of code do not wrap when you reach the end of area A/B in the editor.
    • When Smart edit mode is checked, you can also specify the following:
      • Wrap code when area A/B end is reached - with this enabled, lines wrap when you reach the end of area A/B.
      • Wrapping moves the text in the right hand area to the new line - with this enabled, any comments in the right-hand area stay in the right-hand area but move to the next line when wrapping in the A/B area occurs.
      • Wrap lines when deleting forwards and backwards - when you press Delete after the last non-white space in area A/B, the line beneath moves up (where possible to wrap in the A/B area) if there are no comments in the right-hand area for both lines and no comments in the sequence area of the line beneath. Similarly, when you press Backspace in column 8, the current line moves up (where possible to wrap in the A/B area) if there are no comments in the right-hand area of both lines and no comments in the sequence area of the current line.
      • Pressing home/end moves caret to the beginning/end of the area - check this option to change the way the Home and End keys move the cursor in the COBOL editor:
        • 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.
      Note: Inline comments in the code do not wrap after you reach the end of area A/B.

    Alternatively, click Edit > Advanced > COBOL Smart Edit, or click in the COBOL toolbar, to turn the mode on or off.