スマート編集モードによるワード ラップの構成

スマート編集モードは、異なる COBOL 領域でのワード ラッピングとインデントを制御します。このモードはエディタのデフォルトのモードです。

注:
  • この設定で定義される動作は、コードのソース形式に応じます (固定長、可変または自由)。
  1. [Tools > Options] をクリックします。
  2. [Text Editor、[Micro Focus COBOL] の順に展開します。
  3. [Margins] をクリックします。
  4. [Smart edit mode] およびラップ オプションを必要に応じて構成します。
    • [Smart edit mode] をオンにしないと、エディタで領域 A/B の終わりに達したときコードの行はラップされません。
    • [Smart edit mode] をオンにすると、次も指定できます。
      • 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.
      注: コードのインラインのコメントは、領域 A/B の終わりに達してもラップされません。

    または、[Edit > Advanced > COBOL Smart Edit をクリックするか、COBOL ツールバーの をクリックすると、モードをオンまたはオフに設定できます。