WDSC shortcuts - this is a (non-exhaustive) list of some of the keyboard shortcuts available in the LPEX editor of WDSC. Many of the shortcuts change between major versions of the product, so please be careful!
Tip. Click onin the columns below to sort the column.
|6.x||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||Selects word|
|+||6.x||Copies current selection|
|+||6.x||Pastes clipboard contents|
|+||6.x||Cuts current selection to clipboard|
|6.x||Toggles insert mode (mode shows in header)|
|+||6.x||Selects all source|
|+ +||6.x||Fast Open. Open a source member. Your dont need a filter or a List View, equivalent to a WRKMBRPDM|
|+||6.x||Insert blank line after current (does not split)|
|+||6.x||Find ? simple in source|
|+||220.127.116.11||Find next match from+|
|+||18.104.22.168||Find previous match from+|
|+||6.x||Selects current line|
|+||6.x||Copies current line and places below|
|+||6.x||Deletes the line cursor is on|
|+||6.x||Bring the current line to the top of the view|
|+||6.x||Select matching block of source e.g. IF/ENDIF, DO/ENDDO.|
|+ +||6.x||Jump to end of matching block of source e.g. IF/ENDIF, DO/ENDDO.|
|+ +||6.x||Show matching block nesting e.g. IF/ENDIF, DO/ENDDO.|
|+||6.x||Sets a marker at the current position|
|+||6.01||Jump to marker set by+|
|+||6.x||Moves cursor back to last change made in source|
|+||.||Open source in second session for editing|
|+||6.x||Splits line at current cursor position|
|+||6.x||Joins line at current cursor position|
|+||6.x||Select rectangular block. Position to upper left,+ . Position to lower right, + . Position to target, then take one of the following actions:|
|+||6.x||Copy rectangular block to current cursor position|
|+||6.x||Delete rectangular block|
|+||6.x||Move rectangular block to current cursor position|
|+||6.x||Shift selected block left|
|+||6.x||Shift selected block right|
|+||6.x||Lowercase selected block|
|+||6.x||Uppercase selected block|
|+||6.x||Position to top of rectangular block|
|+||6.x||Position to bottom of rectangular block|
|+||6.x||Deselects any currently selected text, including rectangular block|
|DblClick Header||6.x||Shifts into full screen mode|
|+||22.214.171.124||Cycle between editors|
|+||6.x||Switches between open views|
|+||6.x||Switches between open perspectives|
|+||6.x||Displays list of open editors (also Source Location)|
|+||6.x||Closes open editor|
|6.x||Position Cursor on Sub-Routine or Procedure Name andjumps to it. Use with + and + to return to your code.|
|126.96.36.199||Access the menus on the main menu bar|
|+||188.8.131.52||Access the context menu for the current view|
|+||184.108.40.206||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||Compiles current editor source member|
|+ +||6.x||Switch to Editor. Allows selection and closing of editors.|
|+ +||6.x||Verifies current editor source member by performing a syntax check on it. Additionally, refreshes the WDSC cache.|
|+ +||7.x||After verify, move to the next problem.|
|+ +||7.x||After verify, move to the previous problem.|
|+||6.x||Remove show messages from compile|
|+ +||220.127.116.11||Refresh outline view|
|+||18.104.22.168||Content assist (free-form RPG)|
|+||6.x||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
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.|
In addition to the keyboard shortcuts, the command line (at the bottom of the editing window) offers a range of available options.
- 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).