Previous Topic Next topic Print topic


Word wrapping and indentation in Smart Edit Mode

Smart Edit Mode controls the behavior of word wrapping and indentation in the different areas of the PL/I source files.

To enable the Smart Edit Mode:

  1. Click Window > Preferences > Micro Focus > PL/I > Editor.
  2. Ensure Smart edit mode is enabled.
  3. Click OK.

Alternatively, click Toggle Smart Edit Mode, Toggle Smart Edit Mode, in the Eclipse toolbar to turn the mode on or off.

You can change the following configuration options in the Typing preferences dialog box by selecting Window > Preferences > Micro Focus > PL/I > Editor > Typing.

Wrapping
  • Wrap code when source code area end is reached - lines wrap when you reach the end of the source code area.
  • Wrapping moves the text in the right hand area to the new line - any comments in the right-hand area stay in the right-hand area but move to the next line when wrapping in the source code area occurs.
  • Wrap lines when deleting forwards and backwards - when you press Delete after the last non-white space in the area, the line beneath moves up (and where possible wraps in the source code area), and comments in the right-hand area stay with the associated line of code. Similarly, when you press Backspace in column 1, the current line moves up (and where possible wraps in the source code area), and comments in the right-hand area stay with the associated line of code.
Indentation
  • Enter key and smart wrapping adjust the indentation on the new line - pressing Enter moves the code to the next line and to the column where the previous line starts. When this is disabled, pressing Enter moves the code on the next line to the start of the source code area.
  • Tab/Shift-Tab keys adjust the indentation based on the area margins - configures the indentation when you use Tab to move code and it reaches the end of the source code area, and also configures how Shift+Tab moves text in the different areas of the code.
Previous Topic Next topic Print topic