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:
- From the RDp toolbar select Window > Preferences
- Expand LPEX Editor
- Select User Key Actions
- Enter the key definition (such as enter) in the Key input field
- Enter an editor action (such as splitline) in the Action field
- Click on the Set button
- Click on OK
Below are some of the default key definitions:
Key Definition | Key Strokes |
enter | Enter |
s-enter | Shift+Enter |
c-enter | Ctrl+Enter |
c-numpadEnter.secondary | Ctrl+Numpad Enter |
s-numpadEnter.secondary | Shift+Numpad Enter |
numpadEnter.secondary | Numpad 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"}}]
Was this topic helpful?
Document Information
Modified date:
29 April 2020
UID
swg21639969