WDSC shortcuts - this is a (non-exhaustive) list of some of the keyboard shortcuts available in the LPEX editor of WDSC and RDi. Shortcuts can change between major versions of the product, so please be careful!
Tip. Click onin the columns below to sort the column.
|6.x||RSE||Make editor active. This is particularly useful for switching back to the editor view from the iSeries Error list view after a compile.|
|Dbl-click on word||6.x||Editing||Selects word|
|+||6.x||Editing||Copies current selection|
|+||6.x||Editing||Pastes clipboard contents|
|+||6.x||Editing||Cuts current selection to clipboard|
|6.x||Editing||Toggles insert mode (mode shows in header)|
|+||6.x||Editing||Selects all source|
|+ +||6.x||Editing||Fast Open. Open a source member. You don't need a filter or a List View, equivalent to a WRKMBRPDM. RDP 8.5 maps this to multiple commands; use Preferences->General->Keys to find and disable the undesired one.|
|+||6.x||Editing||Insert blank line after current (does not split)|
|+||6.x||Searching||Find ? simple in source|
|+||184.108.40.206||Searching||Find next match from+|
|+||220.127.116.11||Searching||Find previous match from+|
|+||6.x||Editing||Selects current line or extends selection block from previous selection to current line. Position to target, then take one of the Block Editing actions|
|+||6.x||Editing||Duplicates current line and places below|
|+||6.x||Editing||Deletes the line cursor is on|
|+||6.x||Editing||Bring the current line to the top of the view|
|+||6.x||Searching||Select matching block of source e.g. IF/ENDIF, DO/ENDDO.|
|+ +||6.x||Searching||Jump to end of matching block of source e.g. IF/ENDIF, DO/ENDDO.|
|+ +||6.x||Searching||Show matching block nesting e.g. IF/ENDIF, DO/ENDDO.|
|+||6.x||Editing||Sets a marker at the current position. Quick Mark+ returns|
|+||6.01||Editing||Jump to marker set by+|
|+||6.x||Editing||Moves cursor back to last change made in source|
|+||.||Editing||Open the source in second view for editing|
|+||.||Editing||Close the second source view|
|+||6.x||Editing||Splits line at current cursor position|
|+||6.x||Editing||Joins line at current cursor position|
|+||6.x||Editing||Select rectangular block. Position to upper left,+ . Position to lower right, + . Position to target, then take one of the Block Editing actions|
|+||6.x||Block Editing||Copy selected block and insert at current cursor position (code shifts)|
|+||6.x||Block Editing||Delete selected block|
|+||6.x||Block Editing||Move selected block and insert at current cursor position (code shifts)|
|+||6.x||Block Editing||Copy selected block and over write at current cursor position|
|+||6.x||Block Editing||Shift selected block left|
|+||6.x||Block Editing||Shift selected block right|
|+||6.x||Block Editing||Lowercase selected block|
|+||6.x||Block Editing||Uppercase selected block|
|+||6.x||Block Editing||Position to top of selected block|
|+||6.x||Block Editing||Position to bottom of selected block|
|+||6.x||Block Editing||Deselects any currently selected text, including rectangular block|
|DblClick Header||6.x||Shifts into full screen mode|
|+||18.104.22.168||Editing||Cycle between editors|
|+||6.x||RSE||Switches between open views|
|+||6.x||RSE||Switches between open perspectives|
|+||6.x||RSE||Displays list of open editors (also Source Location)|
|+||6.x||RSE||Closes open editor|
|6.x||Searching||Position Cursor on Sub-Routine or Procedure Name andjumps to it. Use with + and + to return to your code.|
|22.214.171.124||RSE||Access the menus on the main menu bar|
|+||126.96.36.199||RSE||Access the context menu for the current view|
|+ +||9.0.1||RSE||Navigate to the previous editor pane (when multiple panes open on the same member)|
|+ +||9.0.1||RSE||Navigate to the next editor pane (when multiple panes open on the same member)|
|+||188.8.131.52||RSE||Pulldown menu for the current view (if there is one) In an editor, opens the menu for the marker bar to the left of the editor|
|+ +||6.x||Editing||Compiles current editor source member using last compile command for the current member-type|
|+ +||7.0?||Editing||Search by date|
|+ +||6.x||RSE||Switch to Editor. Allows selection and closing of editors.|
|+ +||6.x||Editing||Verifies current editor source member by performing a syntax check on it. Additionally, refreshes the WDSC cache.|
|+ +||7.x||Searching||After verify, move to the next problem.|
|+ +||7.x||Searching||After verify, move to the previous problem.|
|+||6.x||Editing||Remove show messages from compile|
|+ +||184.108.40.206||Editing||Refresh outline view|
|+||220.127.116.11||Editing||Content assist (free-form RPG)|
|+||6.x||Editing||Show all (undo any filters)|
Key bindings for Eclipse can be seen by using the
Window->Preferences, General->Keys path, but these can be overridden by a perspective. You can also see the same list by + + , but again, that is an incomplete list because shortcuts can be added silently by various perspectives and plug-ins.
User-suggested keyboard shortcuts
Keyboard shortcuts are more formally known as User Key Actions. See Remap keyboard shortcuts
Following are some shortcuts suggested by users (that is, they don't come with the IBM software distribution) To set up your own custom shortcuts:
- Check that the key isn't already assigned. If it is, your custom shortcut will override the provided shortcut.
Windows->Preferences, LPEX Editor->User Key Actions
- In the 'Key' box, enter the key in the form
- c means hold down the key. This is optional.
- a means hold down th key This is optional.
- s means hold down the key This is optional.
- x is the actual key on the keyboard.
|a-s||splitAndShift|| Split the line at the cursor position but do not start the new line at column 1, keep the new line aligned where the split point is. Replaces the supplied function |
|c-a-f||findSelection|| Performs a search on text that is selected. Will only search once unless the Find dialogue has |
|c-s-f||filterSelection||Filters on the selected text, showing only lines having the selection. Ctrl-U to undo the filter and see all lines.|
|c-a-l||locateSequenceLine||Lets one search for a sequence number (as opposed to c-l, which positions to a line / rrn number).|
|c-a-r||keyRecorderStart||Begin recording a keystroke macro.|
|c-a-p||keyRecorderPlay||Play back the last keystroke macro.|
|c-a-t||keyRecorderStop||Stop recording a keystroke macro.|
In addition to the keyboard shortcuts, the command line (at the bottom of the editing window) offers a range of available options. Pressing ESC will toggle into and out of the LPEX command line.
- Sort will sort a range of selected lines (for instance, select your D specs and type sort in the command line).
- Help will show help for specific commands (help sort).
?seuwill show specific actions related to IBM i source editing
trimwill truncate source that opens with spaces extending far to the end of the line.
####(any number not decimal formatted) will position to that line. For instance you want to position to line 1200.00 just type 1200 and press Enter.
- To see a list of commands pre defined type
?commandsinto the LPEX command line, press Enter and look for the link "Default editor commands".
- To see a list of commands you have run, toggle into the command line, press F4.
User LPEX commands
User commands are formally known as User Commands.
Eclipse and LPEX allow you to add user written commands or some of the sample commands as commands you can assign to a keyboard shortcuts or type into the LPEX command line. Commands do not need to be prefixed by the "action" command. Examples of commands are trim and sort.
To see a list of the sample actions and commands supplied by IBM type "?samples" into the LPEX command line and press Enter.
- To add a sample command you need to open the preferences, expand the "LPEX Editor" section and look for the "User Commands".
- Key the command word you want to use in the Name input
- Key the sample class name in the Class input or select from the drop down.