Difference between revisions of "WDSC shortcuts"
m |
m (→Keyboard shortcuts) |
||
(23 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{AN}} - this is a (non-exhaustive) list of some of the keyboard shortcuts available in the LPEX editor of WDSC. | + | {{AN}} - 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! |
==Keyboard shortcuts== | ==Keyboard shortcuts== | ||
− | Tip. Click on {{keypress| | + | Tip. Click on {{keypress|??}} in the columns below to sort the column. |
{| class="wikitable" class=sortable style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; background:white; clear:right; text-align:left;" border="1" cellpadding="3" | {| class="wikitable" class=sortable style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; background:white; clear:right; text-align:left;" border="1" cellpadding="3" | ||
Line 10: | Line 10: | ||
! Key | ! Key | ||
! Earliest version | ! Earliest version | ||
+ | ! Type | ||
! Description | ! Description | ||
|- | |- | ||
|{{keypress|F12}} | |{{keypress|F12}} | ||
| 6.x | | 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. | | 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 | | Dbl-click on word | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Selects word | | Selects word | ||
|- | |- | ||
|{{keypress|Ctrl|C}} | |{{keypress|Ctrl|C}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Copies current selection | | Copies current selection | ||
|- | |- | ||
|{{keypress|Ctrl|Del}} | |{{keypress|Ctrl|Del}} | ||
| 5.x | | 5.x | ||
+ | | Editing | ||
| Works like {{keypress|Field-Exit}} | | Works like {{keypress|Field-Exit}} | ||
|- | |- | ||
|{{keypress|Ctrl|V}} | |{{keypress|Ctrl|V}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Pastes clipboard contents | | Pastes clipboard contents | ||
|- | |- | ||
|{{keypress|Ctrl|X}} | |{{keypress|Ctrl|X}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Cuts current selection to clipboard | | Cuts current selection to clipboard | ||
|- | |- | ||
|{{keypress|Ctrl|Z}} | |{{keypress|Ctrl|Z}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Undo | | Undo | ||
|- | |- | ||
|{{keypress|Ctrl|Y}} | |{{keypress|Ctrl|Y}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| ReDo | | ReDo | ||
|- | |- | ||
|{{keypress|Ctrl|S}} | |{{keypress|Ctrl|S}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Save | | Save | ||
|- | |- | ||
|{{keypress|Insert}} | |{{keypress|Insert}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Toggles insert mode (mode shows in header) | | Toggles insert mode (mode shows in header) | ||
|- | |- | ||
|{{keypress|Ctrl|A}} | |{{keypress|Ctrl|A}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Selects all source | | Selects all source | ||
|- | |- | ||
|{{keypress|Ctrl|Shift|A}} | |{{keypress|Ctrl|Shift|A}} | ||
| 6.x | | 6.x | ||
− | | Fast Open. Open a source member. | + | | 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. | ||
|- | |- | ||
|{{keypress|Ctrl|Enter}} | |{{keypress|Ctrl|Enter}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Insert blank line after current (does not split) | | Insert blank line after current (does not split) | ||
|- | |- | ||
|{{keypress|Ctrl|F}} | |{{keypress|Ctrl|F}} | ||
| 6.x | | 6.x | ||
+ | | Searching | ||
| Find ? simple in source | | Find ? simple in source | ||
|- | |- | ||
|{{keypress|Ctrl|N}} | |{{keypress|Ctrl|N}} | ||
| 7.0.0.4 | | 7.0.0.4 | ||
+ | | Searching | ||
| Find next match from {{keypress|Ctrl|F}} | | Find next match from {{keypress|Ctrl|F}} | ||
|- | |- | ||
|{{keypress|Ctrl|U}} | |{{keypress|Ctrl|U}} | ||
| 7.0.0.4 | | 7.0.0.4 | ||
+ | | Searching | ||
| Find previous match from {{keypress|Ctrl|F}} | | Find previous match from {{keypress|Ctrl|F}} | ||
|- | |- | ||
|{{keypress|Alt|L}} | |{{keypress|Alt|L}} | ||
| 6.x | | 6.x | ||
− | | Selects current line | + | | 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 | ||
|- | |- | ||
|{{keypress|Ctrl|D}} | |{{keypress|Ctrl|D}} | ||
| 6.x | | 6.x | ||
− | | | + | | Editing |
+ | | Duplicates current line and places below | ||
|- | |- | ||
|{{keypress|Ctrl| Backspace }} | |{{keypress|Ctrl| Backspace }} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Deletes the line cursor is on | | Deletes the line cursor is on | ||
|- | |- | ||
|{{keypress|Ctrl|T}} | |{{keypress|Ctrl|T}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Bring the current line to the top of the view | | Bring the current line to the top of the view | ||
|- | |- | ||
|{{keypress|Ctrl|M}} | |{{keypress|Ctrl|M}} | ||
| 6.x | | 6.x | ||
+ | | Searching | ||
| Select matching block of source e.g. IF/ENDIF, DO/ENDDO. | | Select matching block of source e.g. IF/ENDIF, DO/ENDDO. | ||
|- | |- | ||
|{{keypress|Ctrl|Shift|M}} | |{{keypress|Ctrl|Shift|M}} | ||
| 6.x | | 6.x | ||
+ | | Searching | ||
| Jump to end of matching block of source e.g. IF/ENDIF, DO/ENDDO. | | Jump to end of matching block of source e.g. IF/ENDIF, DO/ENDDO. | ||
|- | |- | ||
|{{keypress|Ctrl|Shift|O}} | |{{keypress|Ctrl|Shift|O}} | ||
| 6.x | | 6.x | ||
+ | | Searching | ||
| Show matching block nesting e.g. IF/ENDIF, DO/ENDDO. | | Show matching block nesting e.g. IF/ENDIF, DO/ENDDO. | ||
|- | |- | ||
|{{keypress|Ctrl|Q}} | |{{keypress|Ctrl|Q}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Sets a marker at the current position. Quick Mark {{keypress|Alt|Q}}returns | | Sets a marker at the current position. Quick Mark {{keypress|Alt|Q}}returns | ||
|- | |- | ||
|{{keypress|Alt|Q}} | |{{keypress|Alt|Q}} | ||
| 6.01 | | 6.01 | ||
+ | | Editing | ||
| Jump to marker set by {{keypress|Ctrl|Q}} | | Jump to marker set by {{keypress|Ctrl|Q}} | ||
|- | |- | ||
|{{keypress|Ctrl|J}} | |{{keypress|Ctrl|J}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Moves cursor back to last change made in source | | Moves cursor back to last change made in source | ||
|- | |- | ||
|{{keypress|Ctrl|2}} | |{{keypress|Ctrl|2}} | ||
| . | | . | ||
− | | Open source in second | + | | Editing |
+ | | Open the source in second view for editing | ||
+ | |- | ||
+ | |{{keypress|Ctrl|0}} | ||
+ | | . | ||
+ | | Editing | ||
+ | | Close the second source view | ||
|- | |- | ||
|{{keypress|Alt|S}} | |{{keypress|Alt|S}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Splits line at current cursor position | | Splits line at current cursor position | ||
|- | |- | ||
|{{keypress|Alt|J}} | |{{keypress|Alt|J}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Joins line at current cursor position | | Joins line at current cursor position | ||
|- | |- | ||
|{{keypress|Alt|R}} | |{{keypress|Alt|R}} | ||
| 6.x | | 6.x | ||
− | | Select rectangular block. Position to upper left, {{keypress|Alt|R}}. Position to lower right, {{keypress|Alt|R}}. Position to target, then take one of the | + | | Editing |
+ | | Select rectangular block. Position to upper left, {{keypress|Alt|R}}. Position to lower right, {{keypress|Alt|R}}. Position to target, then take one of the Block Editing actions | ||
|- | |- | ||
|{{keypress|Alt|C}} | |{{keypress|Alt|C}} | ||
| 6.x | | 6.x | ||
− | | Copy | + | | Block Editing |
+ | | Copy selected block and insert at current cursor position (code shifts) | ||
|- | |- | ||
|{{keypress|Alt|D}} | |{{keypress|Alt|D}} | ||
| 6.x | | 6.x | ||
− | | Delete | + | | Block Editing |
+ | | Delete selected block | ||
|- | |- | ||
|{{keypress|Alt|M}} | |{{keypress|Alt|M}} | ||
| 6.x | | 6.x | ||
− | | Move | + | | Block Editing |
+ | | Move selected block and insert at current cursor position (code shifts) | ||
+ | |- | ||
+ | |{{keypress|Alt|Z}} | ||
+ | | 6.x | ||
+ | | Block Editing | ||
+ | | Copy selected block and over write at current cursor position | ||
|- | |- | ||
|{{keypress|Alt|F7}} | |{{keypress|Alt|F7}} | ||
| 6.x | | 6.x | ||
+ | | Block Editing | ||
| Shift selected block left | | Shift selected block left | ||
|- | |- | ||
|{{keypress|Alt|F8}} | |{{keypress|Alt|F8}} | ||
| 6.x | | 6.x | ||
+ | | Block Editing | ||
| Shift selected block right | | Shift selected block right | ||
|- | |- | ||
|{{keypress|Alt|I}} | |{{keypress|Alt|I}} | ||
| 6.x | | 6.x | ||
+ | | Block Editing | ||
| Lowercase selected block | | Lowercase selected block | ||
|- | |- | ||
|{{keypress|Alt|K}} | |{{keypress|Alt|K}} | ||
| 6.x | | 6.x | ||
+ | | Block Editing | ||
| Uppercase selected block | | Uppercase selected block | ||
|- | |- | ||
|{{keypress|Alt| PageUp}} | |{{keypress|Alt| PageUp}} | ||
| 6.x | | 6.x | ||
− | | Position to top of | + | | Block Editing |
+ | | Position to top of selected block | ||
|- | |- | ||
|{{keypress|Alt| PageDown}} | |{{keypress|Alt| PageDown}} | ||
| 6.x | | 6.x | ||
− | | Position to bottom of | + | | Block Editing |
+ | | Position to bottom of selected block | ||
|- | |- | ||
|{{keypress|Alt|U}} | |{{keypress|Alt|U}} | ||
| 6.x | | 6.x | ||
+ | | Block Editing | ||
| Deselects any currently selected text, including rectangular block | | Deselects any currently selected text, including rectangular block | ||
|- | |- | ||
| DblClick Header | | DblClick Header | ||
| 6.x | | 6.x | ||
+ | | | ||
| Shifts into full screen mode | | Shifts into full screen mode | ||
|- | |- | ||
|{{keypress|Ctrl|F6}} | |{{keypress|Ctrl|F6}} | ||
| 7.0.0.4 | | 7.0.0.4 | ||
+ | | Editing | ||
| Cycle between editors | | Cycle between editors | ||
|- | |- | ||
|{{keypress|Ctrl|F7}} | |{{keypress|Ctrl|F7}} | ||
| 6.x | | 6.x | ||
+ | | RSE | ||
| Switches between open views | | Switches between open views | ||
|- | |- | ||
|{{keypress|Ctrl|F8}} | |{{keypress|Ctrl|F8}} | ||
| 6.x | | 6.x | ||
+ | | RSE | ||
| Switches between open perspectives | | Switches between open perspectives | ||
|- | |- | ||
|{{keypress|Ctrl|E}} | |{{keypress|Ctrl|E}} | ||
| 6.x | | 6.x | ||
+ | | RSE | ||
| Displays list of open editors (also Source Location) | | Displays list of open editors (also Source Location) | ||
|- | |- | ||
|{{keypress|Ctrl|F4}} | |{{keypress|Ctrl|F4}} | ||
| 6.x | | 6.x | ||
+ | | RSE | ||
| Closes open editor | | Closes open editor | ||
|- | |- | ||
|{{keypress|F1}} | |{{keypress|F1}} | ||
| 6.x | | 6.x | ||
+ | | RSE | ||
| Help | | Help | ||
|- | |- | ||
|{{keypress|F3}} | |{{keypress|F3}} | ||
| 6.x | | 6.x | ||
+ | | Searching | ||
| Position Cursor on Sub-Routine or Procedure Name and {{keypress|F3}} jumps to it. Use with {{keypress|Ctrl|Q}} and {{keypress|Alt|Q}} to return to your code. | | Position Cursor on Sub-Routine or Procedure Name and {{keypress|F3}} jumps to it. Use with {{keypress|Ctrl|Q}} and {{keypress|Alt|Q}} to return to your code. | ||
|- | |- | ||
|{{keypress|F10}} | |{{keypress|F10}} | ||
| 7.0.0.4 | | 7.0.0.4 | ||
+ | | RSE | ||
| Access the menus on the main menu bar | | Access the menus on the main menu bar | ||
|- | |- | ||
|{{keypress|Shift|F10}} | |{{keypress|Shift|F10}} | ||
| 7.0.0.4 | | 7.0.0.4 | ||
+ | | RSE | ||
| Access the context menu for the current view | | Access the context menu for the current view | ||
+ | |- | ||
+ | |{{keypress|Alt|Shift|Left}} | ||
+ | | 9.0.1 | ||
+ | | RSE | ||
+ | | Navigate to the previous editor pane (when multiple panes open on the same member) | ||
+ | |- | ||
+ | |{{keypress|Alt|Shift|Right}} | ||
+ | | 9.0.1 | ||
+ | | RSE | ||
+ | | Navigate to the next editor pane (when multiple panes open on the same member) | ||
|- | |- | ||
|{{keypress|Ctrl|F10}} | |{{keypress|Ctrl|F10}} | ||
| 7.0.0.4 | | 7.0.0.4 | ||
+ | | 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 | | 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 | ||
|- | |- | ||
|{{keypress|Ctrl|Shift|C}} | |{{keypress|Ctrl|Shift|C}} | ||
| 6.x | | 6.x | ||
− | | Compiles current editor source member | + | | Editing |
+ | | Compiles current editor source member using last compile command for the current member-type | ||
+ | |- | ||
+ | |{{keypress|Ctrl|Shift|D}} | ||
+ | | 7.0? | ||
+ | | Editing | ||
+ | | Search by date | ||
|- | |- | ||
|{{keypress|Ctrl|Shift|E}} | |{{keypress|Ctrl|Shift|E}} | ||
| 6.x | | 6.x | ||
+ | | RSE | ||
| Switch to Editor. Allows selection and closing of editors. | | Switch to Editor. Allows selection and closing of editors. | ||
|- | |- | ||
|{{keypress|Ctrl|Shift|V}} | |{{keypress|Ctrl|Shift|V}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Verifies current editor source member by performing a syntax check on it. Additionally, refreshes the WDSC cache. | | Verifies current editor source member by performing a syntax check on it. Additionally, refreshes the WDSC cache. | ||
|- | |- | ||
|{{keypress|Ctrl|Shift|,}} | |{{keypress|Ctrl|Shift|,}} | ||
| 7.x | | 7.x | ||
+ | | Searching | ||
| After verify, move to the next problem. | | After verify, move to the next problem. | ||
|- | |- | ||
|{{keypress|Ctrl|Shift|.}} | |{{keypress|Ctrl|Shift|.}} | ||
| 7.x | | 7.x | ||
+ | | Searching | ||
| After verify, move to the previous problem. | | After verify, move to the previous problem. | ||
|- | |- | ||
|{{keypress|Ctrl|F5}} | |{{keypress|Ctrl|F5}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Remove show messages from compile | | Remove show messages from compile | ||
|- | |- | ||
|{{keypress|Ctrl|Shift|F5}} | |{{keypress|Ctrl|Shift|F5}} | ||
| 7.0.0.4 | | 7.0.0.4 | ||
+ | | Editing | ||
| Refresh outline view | | Refresh outline view | ||
|- | |- | ||
|{{keypress|Ctrl|Space}} | |{{keypress|Ctrl|Space}} | ||
| 7.0.0.4 | | 7.0.0.4 | ||
+ | | Editing | ||
| Content assist (free-form RPG) | | Content assist (free-form RPG) | ||
|- | |- | ||
|{{keypress|Ctrl|W}} | |{{keypress|Ctrl|W}} | ||
| 6.x | | 6.x | ||
+ | | Editing | ||
| Show all (undo any filters) | | Show all (undo any filters) | ||
|} | |} | ||
− | |||
Key bindings for [[Eclipse]] can be seen by using the {{code|Window->Preferences, General->Keys}} path, but these can be overridden by a perspective. You can also see the same list by {{keypress|Ctrl|Shift|L}}, but again, that is an incomplete list because shortcuts can be added silently by various perspectives and plug-ins. | Key bindings for [[Eclipse]] can be seen by using the {{code|Window->Preferences, General->Keys}} path, but these can be overridden by a perspective. You can also see the same list by {{keypress|Ctrl|Shift|L}}, but again, that is an incomplete list because shortcuts can be added silently by various perspectives and plug-ins. | ||
==User-suggested keyboard shortcuts== | ==User-suggested keyboard shortcuts== | ||
+ | |||
+ | Keyboard shortcuts are more formally known as User Key Actions. See [[WDSC_LPEX#Remap_keyboard_shortcuts|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: | 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: | ||
Line 284: | Line 371: | ||
| filterSelection | | filterSelection | ||
| Filters on the selected text, showing only lines having the selection. Ctrl-U to undo the filter and see all lines. | | 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. | ||
|} | |} | ||
==LPEX commands== | ==LPEX commands== | ||
− | In addition to the keyboard shortcuts, the command line (at the bottom of the editing window) offers a range of available options. | + | 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). | *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). | *Help will show help for specific commands (help sort). | ||
+ | *{{code|?seu}} will show specific actions related to IBM i source editing | ||
+ | *{{code|trim}} will truncate source that opens with spaces extending far to the end of the line. | ||
+ | *{{code|####}} (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 {{code|?commands}} into 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. | ||
==External links== | ==External links== | ||
Line 298: | Line 418: | ||
[[Category:WDSC|Shortcuts]] | [[Category:WDSC|Shortcuts]] | ||
[[Category:Quick Reference]] | [[Category:Quick Reference]] | ||
+ | [[Category:RDi]] |
Latest revision as of 05:31, 6 March 2017
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!
Contents
Keyboard shortcuts
Tip. Click on ?? in the columns below to sort the column.
Key | Earliest version | Type | Description |
---|---|---|---|
F12 | 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 |
Ctrl+C | 6.x | Editing | Copies current selection |
Ctrl+Del | 5.x | Editing | Works like Field-Exit |
Ctrl+V | 6.x | Editing | Pastes clipboard contents |
Ctrl+X | 6.x | Editing | Cuts current selection to clipboard |
Ctrl+Z | 6.x | Editing | Undo |
Ctrl+Y | 6.x | Editing | ReDo |
Ctrl+S | 6.x | Editing | Save |
Insert | 6.x | Editing | Toggles insert mode (mode shows in header) |
Ctrl+A | 6.x | Editing | Selects all source |
Ctrl+Shift+A | 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. |
Ctrl+Enter | 6.x | Editing | Insert blank line after current (does not split) |
Ctrl+F | 6.x | Searching | Find ? simple in source |
Ctrl+N | 7.0.0.4 | Searching | Find next match from Ctrl+F |
Ctrl+U | 7.0.0.4 | Searching | Find previous match from Ctrl+F |
Alt+L | 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 |
Ctrl+D | 6.x | Editing | Duplicates current line and places below |
Ctrl+ Backspace | 6.x | Editing | Deletes the line cursor is on |
Ctrl+T | 6.x | Editing | Bring the current line to the top of the view |
Ctrl+M | 6.x | Searching | Select matching block of source e.g. IF/ENDIF, DO/ENDDO. |
Ctrl+Shift+M | 6.x | Searching | Jump to end of matching block of source e.g. IF/ENDIF, DO/ENDDO. |
Ctrl+Shift+O | 6.x | Searching | Show matching block nesting e.g. IF/ENDIF, DO/ENDDO. |
Ctrl+Q | 6.x | Editing | Sets a marker at the current position. Quick Mark Alt+Qreturns |
Alt+Q | 6.01 | Editing | Jump to marker set by Ctrl+Q |
Ctrl+J | 6.x | Editing | Moves cursor back to last change made in source |
Ctrl+2 | . | Editing | Open the source in second view for editing |
Ctrl+0 | . | Editing | Close the second source view |
Alt+S | 6.x | Editing | Splits line at current cursor position |
Alt+J | 6.x | Editing | Joins line at current cursor position |
Alt+R | 6.x | Editing | Select rectangular block. Position to upper left, Alt+R. Position to lower right, Alt+R. Position to target, then take one of the Block Editing actions |
Alt+C | 6.x | Block Editing | Copy selected block and insert at current cursor position (code shifts) |
Alt+D | 6.x | Block Editing | Delete selected block |
Alt+M | 6.x | Block Editing | Move selected block and insert at current cursor position (code shifts) |
Alt+Z | 6.x | Block Editing | Copy selected block and over write at current cursor position |
Alt+F7 | 6.x | Block Editing | Shift selected block left |
Alt+F8 | 6.x | Block Editing | Shift selected block right |
Alt+I | 6.x | Block Editing | Lowercase selected block |
Alt+K | 6.x | Block Editing | Uppercase selected block |
Alt+ PageUp | 6.x | Block Editing | Position to top of selected block |
Alt+ PageDown | 6.x | Block Editing | Position to bottom of selected block |
Alt+U | 6.x | Block Editing | Deselects any currently selected text, including rectangular block |
DblClick Header | 6.x | Shifts into full screen mode | |
Ctrl+F6 | 7.0.0.4 | Editing | Cycle between editors |
Ctrl+F7 | 6.x | RSE | Switches between open views |
Ctrl+F8 | 6.x | RSE | Switches between open perspectives |
Ctrl+E | 6.x | RSE | Displays list of open editors (also Source Location) |
Ctrl+F4 | 6.x | RSE | Closes open editor |
F1 | 6.x | RSE | Help |
F3 | 6.x | Searching | Position Cursor on Sub-Routine or Procedure Name and F3 jumps to it. Use with Ctrl+Q and Alt+Q to return to your code. |
F10 | 7.0.0.4 | RSE | Access the menus on the main menu bar |
Shift+F10 | 7.0.0.4 | RSE | Access the context menu for the current view |
Alt+Shift+Left | 9.0.1 | RSE | Navigate to the previous editor pane (when multiple panes open on the same member) |
Alt+Shift+Right | 9.0.1 | RSE | Navigate to the next editor pane (when multiple panes open on the same member) |
Ctrl+F10 | 7.0.0.4 | 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 |
Ctrl+Shift+C | 6.x | Editing | Compiles current editor source member using last compile command for the current member-type |
Ctrl+Shift+D | 7.0? | Editing | Search by date |
Ctrl+Shift+E | 6.x | RSE | Switch to Editor. Allows selection and closing of editors. |
Ctrl+Shift+V | 6.x | Editing | Verifies current editor source member by performing a syntax check on it. Additionally, refreshes the WDSC cache. |
Ctrl+Shift+, | 7.x | Searching | After verify, move to the next problem. |
Ctrl+Shift+. | 7.x | Searching | After verify, move to the previous problem. |
Ctrl+F5 | 6.x | Editing | Remove show messages from compile |
Ctrl+Shift+F5 | 7.0.0.4 | Editing | Refresh outline view |
Ctrl+Space | 7.0.0.4 | Editing | Content assist (free-form RPG) |
Ctrl+W | 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 Ctrl+Shift+L, 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-a-s-x
where- c means hold down the Ctrl key. This is optional.
- a means hold down th Alt key This is optional.
- s means hold down the Shift key This is optional.
- x is the actual key on the keyboard.
Key | Function | Description |
---|---|---|
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 split
|
c-a-f | findSelection | Performs a search on text that is selected. Will only search once unless the Find dialogue has Select Found Text selected. Can also be set by set findText.mark on
|
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. |
LPEX commands
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).
?seu
will show specific actions related to IBM i source editingtrim
will 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
?commands
into 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.