Correcting indentation in the z Systems LPEX Editor

When you edit C and C++ files in the z Systems® LPEX Editor, you can correct the indentation of your code and thus improve its appearance. The preferences you have set on the Code Style preference page determine whether the editor uses tabs or spaces to correct indentation.

Procedure

In the z Systems LPEX Editor you can correct the indentation of C and C++ code as follows:

  • To correct the indentation of a line:
    1. In the z Systems LPEX Editor, right-click and select Correct Indentation from the menu. Alternatively, you can press Ctrl+I.
    The line that your cursor is on will have its indentation corrected.
  • To correct the indentation of a portion of your file:
    1. In z Systems LPEX Editor, select the text that you want to correct.
    2. Right-click and select Correct Indentation from the menu. Alternatively, you can press Ctrl+I.
    The selected text will have its indentation corrected.