Difference between revisions of "WDSC shortcuts"

From MidrangeWiki
Jump to: navigation, search
m (remove tips link)
(Use Keypress for keys)
Line 12: Line 12:
 
! Description
 
! Description
 
|-
 
|-
| F12  
+
|{{keypress|F12}}
 
| 6.x
 
| 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.
 
| Make editor active.  This is particularly useful for switching back to the editor view from the iSeries Error list view after a compile.
Line 20: Line 20:
 
| Selects word
 
| Selects word
 
|-
 
|-
| Ctrl-C  
+
|{{keypress|Ctrl|C}}
 
| 6.x
 
| 6.x
 
| Copies current selection
 
| Copies current selection
 
|-
 
|-
| Ctrl-Del  
+
|{{keypress|Ctrl|Del}}
 
| 5.x
 
| 5.x
 
| Works like Field-Exit
 
| Works like Field-Exit
 
|-
 
|-
| Ctrl-V  
+
|{{keypress|Ctrl|V}}
 
| 6.x
 
| 6.x
 
| Pastes clipboard contents
 
| Pastes clipboard contents
 
|-
 
|-
| Ctrl-X  
+
|{{keypress|Ctrl|X}}
 
| 6.x
 
| 6.x
 
| Cuts current selection to clipboard
 
| Cuts current selection to clipboard
 
|-
 
|-
| Ctrl-Z  
+
|{{keypress|Ctrl|Z}}
 
| 6.x
 
| 6.x
 
| Undo
 
| Undo
 
|-
 
|-
| Ctrl-Y  
+
|{{keypress|Ctrl|Y}}
 
| 6.x
 
| 6.x
 
| ReDo
 
| ReDo
 
|-
 
|-
| Ctrl-S  
+
|{{keypress|Ctrl|S}}
 
| 6.x
 
| 6.x
 
| Save
 
| Save
 
|-
 
|-
| Insert  
+
|{{keypress|Insert}}
 
| 6.x
 
| 6.x
 
| Toggles insert mode (mode shows in header)
 
| Toggles insert mode (mode shows in header)
 
|-
 
|-
| Ctrl-A  
+
|{{keypress|Ctrl|A}}
 
| 6.x
 
| 6.x
 
| Selects all source
 
| Selects all source
 
|-
 
|-
| Ctrl-Shift-A
+
|{{keypress|Ctrl|Shift|A}}
 
| 6.x
 
| 6.x
 
| Fast Open. Open a source member. Your dont need a filter or a List View, equivalent to a WRKMBRPDM
 
| Fast Open. Open a source member. Your dont need a filter or a List View, equivalent to a WRKMBRPDM
 
|-
 
|-
| Ctrl-Enter
+
|{{keypress|Ctrl|Enter}}
 
| 6.x
 
| 6.x
 
| Insert blank line after current (does not split)
 
| Insert blank line after current (does not split)
 
|-
 
|-
| Ctrl-F  
+
|{{keypress|Ctrl|F}}
 
| 6.x
 
| 6.x
 
| Find ? simple in source  
 
| Find ? simple in source  
 
|-
 
|-
| Ctrl-N
+
|{{keypress|Ctrl|N}}
 
| 7.0.0.4
 
| 7.0.0.4
| Find next match from Ctrl-F
+
| Find next match from Ctrl-F {{keypress|Ctrl|F}}
 
|-
 
|-
| Ctrl-U
+
|{{keypress|Ctrl|U}}
 
| 7.0.0.4
 
| 7.0.0.4
| Find previous match from Ctrl-F
+
| Find previous match from Ctrl-F {{keypress|Ctrl|F}}
 
|-
 
|-
| Alt-L  
+
|{{keypress|Alt|L}}
 
| 6.x
 
| 6.x
 
| Selects current line
 
| Selects current line
 
|-
 
|-
| Ctrl-D  
+
|{{keypress|Ctrl|D}}
 
| 6.x
 
| 6.x
 
| Copies current line and places below  
 
| Copies current line and places below  
 
|-
 
|-
| Ctrl-Backspace  
+
|{{keypress|Ctrl| Backspace }}
 
| 6.x
 
| 6.x
 
| Deletes the line cursor is on
 
| Deletes the line cursor is on
 
|-
 
|-
| Ctrl-T  
+
|{{keypress|Ctrl|T}}
 
| 6.x
 
| 6.x
 
| Bring the current line to the top of the view
 
| Bring the current line to the top of the view
 
|-
 
|-
| Ctrl-M
+
|{{keypress|Ctrl|M}}
 
| 6.x
 
| 6.x
 
| Select matching block of source e.g. IF/ENDIF, DO/ENDDO.
 
| Select matching block of source e.g. IF/ENDIF, DO/ENDDO.
 
|-
 
|-
| Ctrl-Shift-M
+
|{{keypress|Ctrl|Shift|M}}
 
| 6.x
 
| 6.x
 
| 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.
 
|-
 
|-
| Ctrl-Shift-O
+
|{{keypress|Ctrl|Shift|O}}
 
| 6.x
 
| 6.x
 
| Show matching block nesting e.g. IF/ENDIF, DO/ENDDO.
 
| Show matching block nesting e.g. IF/ENDIF, DO/ENDDO.
 
|-
 
|-
| Ctrl-Q  
+
|{{keypress|Ctrl|Q}}
 
| 6.x
 
| 6.x
 
| Sets a marker at the current position
 
| Sets a marker at the current position
 
|-
 
|-
| Alt-Q
+
|{{keypress|Alt|Q}}
 
| 6.01
 
| 6.01
 
| Jump to marker set by Ctrl-Q
 
| Jump to marker set by Ctrl-Q
 
|-
 
|-
| Ctrl-J  
+
|{{keypress|Ctrl|J}}
 
| 6.x
 
| 6.x
 
| Moves cursor back to last change made in source
 
| Moves cursor back to last change made in source
 
|-
 
|-
| Ctrl-2  
+
|{{keypress|Ctrl|2}}
 
| .
 
| .
 
| Open source in second session for editing
 
| Open source in second session for editing
 
|-
 
|-
| Alt-S  
+
|{{keypress|Alt|S}}
 
| 6.x
 
| 6.x
 
| Splits line at current cursor position
 
| Splits line at current cursor position
 
|-
 
|-
| Alt-J  
+
|{{keypress|Alt|J}}
 
| 6.x
 
| 6.x
 
| Joins line at current cursor position
 
| Joins line at current cursor position
 
|-
 
|-
| Alt-R
+
|{{keypress|Alt|R}}
 
| 6.x
 
| 6.x
 
| Select rectangular block.  Position to upper left, Alt-R.  Position to lower right, Alt-R.  Position to target, then take one of the following actions:
 
| Select rectangular block.  Position to upper left, Alt-R.  Position to lower right, Alt-R.  Position to target, then take one of the following actions:
 
|-
 
|-
| Alt-C
+
|{{keypress|Alt|C}}
 
| 6.x
 
| 6.x
 
| Copy rectangular block to current cursor position
 
| Copy rectangular block to current cursor position
 
|-
 
|-
| Alt-D
+
|{{keypress|Alt|D}}
 
| 6.x
 
| 6.x
 
| Delete rectangular block  
 
| Delete rectangular block  
 
|-
 
|-
| Alt-M
+
|{{keypress|Alt|M}}
 
| 6.x
 
| 6.x
 
| Move rectangular block to current cursor position
 
| Move rectangular block to current cursor position
 
|-
 
|-
| Alt-F7
+
|{{keypress|Alt|F7}}
 
| 6.x
 
| 6.x
 
| Shift selected block left
 
| Shift selected block left
 
|-
 
|-
| Alt-F8
+
|{{keypress|Alt|F8}}
 
| 6.x
 
| 6.x
 
| Shift selected block right
 
| Shift selected block right
 
|-
 
|-
| Alt-I
+
|{{keypress|Alt|I}}
 
| 6.x
 
| 6.x
 
| Lowercase selected block
 
| Lowercase selected block
 
|-
 
|-
| Alt-K
+
|{{keypress|Alt|K}}
 
| 6.x
 
| 6.x
 
| Uppercase selected block
 
| Uppercase selected block
 
|-
 
|-
| Alt-PageUp
+
|{{keypress|Alt| PageUp}}
 
| 6.x
 
| 6.x
 
| Position to top of rectangular block  
 
| Position to top of rectangular block  
 
|-
 
|-
| Alt-PageDown
+
|{{keypress|Alt| PageDown}}
 
| 6.x
 
| 6.x
 
| Position to bottom of rectangular block  
 
| Position to bottom of rectangular block  
 
|-
 
|-
| Alt-U  
+
|{{keypress|Alt|U}}
 
| 6.x
 
| 6.x
 
| Deselects any currently selected text, including rectangular block
 
| Deselects any currently selected text, including rectangular block
Line 176: Line 176:
 
| Shifts into full screen mode
 
| Shifts into full screen mode
 
|-
 
|-
| Ctrl-F6
+
|{{keypress|Ctrl|F6}}
 
| 7.0.0.4
 
| 7.0.0.4
 
| Cycle between editors
 
| Cycle between editors
 
|-
 
|-
| Ctrl-F7  
+
|{{keypress|Ctrl|F7}}
 
| 6.x
 
| 6.x
 
| Switches between open views
 
| Switches between open views
 
|-
 
|-
| Ctrl-F8  
+
|{{keypress|Ctrl|F8}}
 
| 6.x
 
| 6.x
 
| Switches between open perspectives
 
| Switches between open perspectives
 
|-
 
|-
| Ctrl-E  
+
|{{keypress|Ctrl|E}}
 
| 6.x
 
| 6.x
 
| Displays list of open editors (also Source Location)
 
| Displays list of open editors (also Source Location)
 
|-
 
|-
| Ctrl-F4  
+
|{{keypress|Ctrl|F4}}
 
| 6.x
 
| 6.x
 
| Closes open editor
 
| Closes open editor
 
|-
 
|-
| F1  
+
|{{keypress|F1}}
 
| 6.x
 
| 6.x
 
| Help
 
| Help
 
|-
 
|-
| F3  
+
|{{keypress|F3}}
 
| 6.x
 
| 6.x
| Position Cursor on Sub-Routine or Procedure Name and F3 jumps to it. Use with C-Q and A-Q to return to your code.
+
| Position Cursor on Sub-Routine or Procedure Name and F3 jumps to it. Use with {{keypress|Ctrl|Q}} and {{keypress|Alt|Q}} to return to your code.
 
|-
 
|-
| F10
+
|{{keypress|F10}}
 
| 7.0.0.4
 
| 7.0.0.4
 
| Access the menus on the main menu bar
 
| Access the menus on the main menu bar
 
|-
 
|-
| Shift-F10  
+
|{{keypress|Shift|F10}}
 
| 7.0.0.4
 
| 7.0.0.4
 
| Access the context menu for the current view
 
| Access the context menu for the current view
 
|-
 
|-
| Ctrl-F10  
+
|{{keypress|Ctrl|F10}}
 
| 7.0.0.4
 
| 7.0.0.4
 
| 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
 
|-
 
|-
| Ctrl-Shift-C
+
|{{keypress|Ctrl|Shift|C}}
 
| 6.x
 
| 6.x
 
| Compiles current editor source member
 
| Compiles current editor source member
 
|-
 
|-
| Ctrl-Shift-V
+
|{{keypress|Ctrl|Shift|V}}
 
| 6.x
 
| 6.x
 
| 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.
 
|-
 
|-
| Ctrl-Shift-,
+
|{{keypress|Ctrl|Shift|,}}
 
| 7.x
 
| 7.x
 
| After verify, move to the next problem.
 
| After verify, move to the next problem.
 
|-
 
|-
| Ctrl-Shift-.
+
|{{keypress|Ctrl|Shift|.}}
 
| 7.x
 
| 7.x
 
| After verify, move to the previous problem.
 
| After verify, move to the previous problem.
 
|-
 
|-
| Ctrl-F5
+
|{{keypress|Ctrl|F5}}
 
| 6.x
 
| 6.x
 
| Remove show messages from compile
 
| Remove show messages from compile
 
|-
 
|-
| Ctrl-Shift-F5
+
|{{keypress|Ctrl|Shift|F5}}
 
| 7.0.0.4
 
| 7.0.0.4
 
| Refresh outline view
 
| Refresh outline view
 
|-
 
|-
| Ctrl-Space
+
|{{keypress|Ctrl|Space}}
 
| 7.0.0.4
 
| 7.0.0.4
 
| Content assist (free-form RPG)
 
| Content assist (free-form RPG)
 
|-
 
|-
| Ctrl-W
+
|{{keypress|Ctrl|W}}
 
| 6.x
 
| 6.x
 
| 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 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 Ctrl-Shift-L, but again, that is an incomplete list because shortcuts can be added silently by various perspectives and plug-ins.

Revision as of 22:19, 14 March 2008

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!


Keyboard shortcuts

Tip. Click on ▶◀ in the columns below to sort the column.

Key Earliest version Description
F12 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
Ctrl+C 6.x Copies current selection
Ctrl+Del 5.x Works like Field-Exit
Ctrl+V 6.x Pastes clipboard contents
Ctrl+X 6.x Cuts current selection to clipboard
Ctrl+Z 6.x Undo
Ctrl+Y 6.x ReDo
Ctrl+S 6.x Save
Insert 6.x Toggles insert mode (mode shows in header)
Ctrl+A 6.x Selects all source
Ctrl+Shift+A 6.x Fast Open. Open a source member. Your dont need a filter or a List View, equivalent to a WRKMBRPDM
Ctrl+Enter 6.x Insert blank line after current (does not split)
Ctrl+F 6.x Find ? simple in source
Ctrl+N 7.0.0.4 Find next match from Ctrl-F Ctrl+F
Ctrl+U 7.0.0.4 Find previous match from Ctrl-F Ctrl+F
Alt+L 6.x Selects current line
Ctrl+D 6.x Copies current line and places below
Ctrl+ Backspace 6.x Deletes the line cursor is on
Ctrl+T 6.x Bring the current line to the top of the view
Ctrl+M 6.x Select matching block of source e.g. IF/ENDIF, DO/ENDDO.
Ctrl+Shift+M 6.x Jump to end of matching block of source e.g. IF/ENDIF, DO/ENDDO.
Ctrl+Shift+O 6.x Show matching block nesting e.g. IF/ENDIF, DO/ENDDO.
Ctrl+Q 6.x Sets a marker at the current position
Alt+Q 6.01 Jump to marker set by Ctrl-Q
Ctrl+J 6.x Moves cursor back to last change made in source
Ctrl+2 . Open source in second session for editing
Alt+S 6.x Splits line at current cursor position
Alt+J 6.x Joins line at current cursor position
Alt+R 6.x Select rectangular block. Position to upper left, Alt-R. Position to lower right, Alt-R. Position to target, then take one of the following actions:
Alt+C 6.x Copy rectangular block to current cursor position
Alt+D 6.x Delete rectangular block
Alt+M 6.x Move rectangular block to current cursor position
Alt+F7 6.x Shift selected block left
Alt+F8 6.x Shift selected block right
Alt+I 6.x Lowercase selected block
Alt+K 6.x Uppercase selected block
Alt+ PageUp 6.x Position to top of rectangular block
Alt+ PageDown 6.x Position to bottom of rectangular block
Alt+U 6.x Deselects any currently selected text, including rectangular block
DblClick Header 6.x Shifts into full screen mode
Ctrl+F6 7.0.0.4 Cycle between editors
Ctrl+F7 6.x Switches between open views
Ctrl+F8 6.x Switches between open perspectives
Ctrl+E 6.x Displays list of open editors (also Source Location)
Ctrl+F4 6.x Closes open editor
F1 6.x Help
F3 6.x 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 Access the menus on the main menu bar
Shift+F10 7.0.0.4 Access the context menu for the current view
Ctrl+F10 7.0.0.4 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 Compiles current editor source member
Ctrl+Shift+V 6.x Verifies current editor source member by performing a syntax check on it. Additionally, refreshes the WDSC cache.
Ctrl+Shift+, 7.x After verify, move to the next problem.
Ctrl+Shift+. 7.x After verify, move to the previous problem.
Ctrl+F5 6.x Remove show messages from compile
Ctrl+Shift+F5 7.0.0.4 Refresh outline view
Ctrl+Space 7.0.0.4 Content assist (free-form RPG)
Ctrl+W 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 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

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.

LPEX commands

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).

External links

Categories