Using the editor
Last updated at 1:47 am UTC on 11 April 2006
On pc-keyboards the alt key is the command(cmd)-key, the control key can be used to make a key kombination
requiring an upper-case letter, so eg. cmd-A = alt+shift+a = ctrl+a.
The clipboard works a lot like in win or mac environments.
- (cmd-c) copy selection to the clipboard. (If no selection the whole line is selected and copied).
- (cmd-v) paste from the clipboard. (An eventual selection is replaced by the pasted text).
- (cmd-x) cut to the clipboard. (If no selection the whole line is cut).
The arrows,pgUp,pgDown,home,end keys work as you might expect (at least as I expected).
- (cmd-left/right) moves insertion point one word back/forward.
- (cmd-up/down) scrolls the the window up/down without changing point position.
- (cmd-M) move to the place of last edit (and select what would be removed by undo).
- (cmd-w) delete to the beginning of the line, if already there: eat a newline.
- (cmd-a) select all.
- (cmd-l/cmd-H) move point to top of window.
- (cmd-A) move point to bottom of window.
Remember that if in a browser the scope of these commands include class and instance vars.
- (cmd-d) Execute selected code, or the current line if no selection.
- (cmd-p) Like above, just print the result.
- (cmd-i) Like above, just inspect the result instead of printing.
- (cmd-I) Like above, just explore the result.
- (cmd-G) fileIn selected text.
- (cmd-m/b) find all classes implementing chosen method.
- (cmd-n) find all references to chosen method.
- (cmd-f) search for text (case-insensitive).
- (cmd-g) search for the same text again.
- (cmd-C) compare (make diff-like thing) text in window and clipboard.
- (cmd-o) open a window of same type (I'm not sure about exact semantics though).
- (cmd-W) find messages whose name contains the selected text.
- (cmd-E) find messages whose definitions contains the selected text (case insensetive).
- (cmd-s) accept the current code to replace former.
- (cmd-l) cancel - revert to the former.
Remember that _ gives the assignment arrow (-) and ^ gives the answer arrow.
The ¤ is exchanged for the € (Euro) symbol.
- (cmd-T/F) insert the text: 'ifTrue:'/'ifFalse'.
- (cmd-R) indent line one step (insert a tab at beginning of line).
- (cmd-,) insert/remove '' and place point between (is this for doing xml?)
- (cmd-,) insert/remove <> and place point between (is this for doing xml?)
- (cmd-z) undo/redo (only a single step backwards).
- (cmd-q) autocomplete method or classname (as an alternative look at eCompletion).
- (ctrl-c) reformat code, and do some syntax checking (browser only I think).
- (cmd-X) turn selection Lower-case.
- (cmd-V) insert signature (initials and date+time).
- (cmd-r) turn on character recognizer (how to turn off again?)
- (cmd–) underline / selection.
- (cmd-1/2/3/4/5) change text-size of selection.
- (cmd-6) change color/make hypertext link/action.
- (cmd-7) make bold.
- (cmd-8) make italic.
- (cmd-9) make letter interspacing smaller.
- (cmd-0) remove text-properties (though not sizing).
- (cmd-u) set alignment of text (center/left/right).
- (cmd-k) choose font.
- (ctrl-p) turns selection light blue.