SheerPower® 4GL
A Guide to the SheerPower Language


Previous Contents Index

F.2 Programming Keystrokes

These keystrokes are extremely helpful and time-saving particularly for programmers.

Table F-2 Programming Keystrokes
Keystroke Function Performed
gold/alt/n bring up NEW FILE dialog box
gold/alt/o bring up OPEN FILE dialog box
gold/p generate a program template
gold/r generate a routine template
gold/o organize routines within source code
gold/d document a routine in a program
gold/a align the "=" and ":" in a group of variable assignments
gold/c generate debug comment line of !++ xxx date
gold/forward slash comment/uncomment the selected text or current line
gold/f Program file - wraps long lines of code correctly at the right-margin and inserts "&" at the end of the wrapped line of code. Code is indented accordingly.
gold/f Text file - wrap and fill selected text. If no text is selected, it defaults to the 'current paragraph'.
alt/i open .SPINC (include) files
gold/alt/l launch a new instance of SPDEV
gold/alt/4 launch console window
gold/alt/z save open files and exit SPDEV
gold/F3 bring up FIND dialog box
gold/KP * bring up FIND dialog box
F3 find next
F11 go to definition-place the cursor on a reference to a routine, then press F11 to go directly to that routine.
F12 show definition-place cursor on a reference to a routine, then press F12 to display the contents of the routine header in a new window.
KP * find next
ctrl/f brings up the FIND dialog box
ctrl/m insert/remove bookmark
ctrl/n move cursor to next bookmark
ctrl/p move cursor to previous bookmark
gold/l start/stop recording macro
gold/n run the macro associated with the number (n = number)
alt/r runs the current program
F9 expansion key
KP / expansion key
KP 0 move cursor to the beginning of the next line. If at EOF, a new line is started.
gold/KP 0 insert a blank line before the current line; moves cursor to the blank line.
gold/KP 2 delete from cursor to end of line
gold/kp 8 Program file - wraps long lines of code correctly at the right-margin and inserts "&" at the end of the wrapped line of code. Code is indented accordingly.
gold/kp 8 Text file - wrap and fill selected text. If no text is selected, it defaults to the 'current paragraph'.
gold/home delete from cursor to beginning of line
gold/page down move cursor to bottom of file
gold/page up move cursor to top of file
alt/down arrow prompts for # of lines to move down; moves cursor down that # of lines
alt/up arrow prompts for # of lines to move up; moves cursor up that # of lines
gold/alt/s save current file

F.3 Keystroke Combinations

The following table describes keystroke combinations that allow the user to do particular functions with ease. For example, [Ctrl/C] and [Ctrl/V] perform the common "copy and paste" combination.

Table F-3 Keystroke Combinations
Keystroke Combinations
ctrl/c copy (ends selection) ctrl/v paste
KP 5 copy KP Enter paste
ctrl/x cut selection ctrl/v paste
gold/F3 bring up FIND dialog box F3 search for next occurence
F5 cut current line gold/F5 uncut current line [pastes it back]
F6 cut current word gold/F6 uncuts current word [pastes it back]
home move to the beginning of current line gold/end deletes from cursor to end of line
KP 4 select line KP 6 cut
gold/KP 4 select paragraph gold/KP 5 copy paragraph
ctrl/p go to previous bookmark ctrl/n go to next bookmark

F.4 Editing Keystrokes

The following tables describe the special SheerPower keystrokes designed to make editing in SPDEV fast and easy.

F.4.1 Select Keystrokes

Table F-4 Select
Keystroke Function Performed
KP4 selects current line
gold/KP4 selects current paragraph
ctrl/a select all
shift/ctrl/end selects text from cursor to end of file
shift/ctrl/home selects text from cursor to beginning of file
shift/right arrow selects text one character at a time

F.4.2 Copy Keystrokes

Table F-5 Copy
Keystroke Function Performed
ctrl/c copy (end selection)
KP 5 copy [or copy CURRENT LINE if no text selected]
gold/KP 5 copy current paragraph without selecting

F.4.3 Cut Keystrokes

Table F-6 Cut
Keystroke Function Performed
KP 6 cut
ctrl/x cut selection
F7 cut current character without selecting
F6 cut current word without selecting
F5 cut current line without selecting
KP - cut current line without selecting
KP + cut current word without selecting
ctrl/KP + cut current character without selecting
shift/delete cut selected text to the clipboard

F.4.4 Paste Keystrokes

Table F-7 Paste
Keystroke Function Performed
gold/KP 6 paste
ctrl/t trim whitespace and paste
ctrl/v paste
KP Enter paste
gold/ctrl/KP + uncut current character [paste]
gold/F7 uncut character [paste]
gold/KP + uncut current word [paste]
gold/F6 uncut current word [paste]
gold/F5 uncut current line [paste]


Previous Next Contents Index