IBM Support

Enter key does not work as expected in RDp and RDi LPEX editor

Troubleshooting


Problem

The Enter key does not work as expected in the IBM Rational Developer for Power Systems (RDp) or IBM Rational Developer for i Systems (RDi) LPEX editor for COBOL.

Symptom

When the Enter key is used in the LPEX editor for COBOL it does not do the split as expected. Instead it moves the cursor to the next line, but it does not move any text with it.

Cause

The default action for the Enter key in the LPEX editor is newLine.

Resolving The Problem

To set the Enter key to perform the splitLine action, following these steps:

  1. From the RDp toolbar select Window > Preferences

  2. Expand LPEX Editor

  3. Select User Key Actions

  4. Enter the key definition (such as enter) in the Key input field

  5. Enter an editor action (such as splitline) in the Action field

  6. Click on the Set button

  7. Click on OK

Below are some of the default key definitions:

Key Definition
Key Strokes
enter Enter
s-enter Shift+Enter
c-enterCtrl+Enter
c-numpadEnter.secondary Ctrl+Numpad Enter
s-numpadEnter.secondaryShift+Numpad Enter
numpadEnter.secondaryNumpad Enter


In order to use the smart split line function, select splitLine from the Action pulldown list.

The splitLine action splits the current line at the current cursor position and moves the cursor to the beginning of the new line.

The splitAndShift action splits the current line at the current cursor position and shifts the text on the new line over to its original location on the previous line.

The newLine action moves the cursor to the beginning of the next visible line.

Below is a picture showing the settings when done correctly (note that the e is lowercase in enter).

[{"Product":{"code":"SS4QVT","label":"Rational Developer for Power Systems Software"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Documentation","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.3;8.5;8.5.1","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Product":{"code":"SSAE4W","label":"Rational Developer for i"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Documentation","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
29 April 2020

UID

swg21639969