Some DrScheme Key Bindings

Moving Around

In Dr. Scheme, the following keys can help you move around and edit your text in the definitions window. Note that C-f is shorthand for ``control-f'', i.e. type ``f'' while holding down the control key, in the same way you hold down the shift key to capitalize a letter. Similarly, ``M'' stands for the meta key, which labelled with a diamond (on each side of the space bar). So C-M-f means holding down both the control and meta keys, and pressing f. It's not as bad as it sounds!
Handy Editing Keystrokes
keystroke meaning
tab re-indent the current line
C-M-f go forward one S-expression
C-M-b go back one S-expression
C-M-d go down one nesting of S-expression
C-M-u go up one nesting of S-expression
C-M-t trade position of the S-expressions on each side of cursor
C-b go backward a character
C-f go forward a character
C-a go to the start of the line
C-e go to the end of the line
C-p go to previous line
C-n go to next line
C-d delete next character
C-k kill (cut) from cursor to end of line
C-y yank (paste) back the most recently-killed text
C-m x cut
C-m v paste
C-m c copy
C-m z undo

You'll find that the control keys C-a, etc., listed here often have the same meaning in many other programs under in X windows, such as Netscape.

Also, check out Dr Scheme's Edit menu, and the ``Mac style'' keyboard shortcuts it lists, where C-m is the homolog to the Mac's command key: for instance C-m z (control-m, followed by z) is Undo. You can repeatedly Undo. For the die-hard, there are further editing commands discussed from pressing Dr. Scheme's "Help" button.

Practice

For practice, load your Homework 1 solution (or the
posted solution) into Dr. Scheme, and have fun editting it.
Back to Lab 3
Back to Comp 210 Home