Difference between revisions of "Lazarus IDE Shortcuts"
From Lazarus wiki
Jump to navigationJump to searchLine 42: | Line 42: | ||
|---- class="working" | |---- class="working" | ||
|F7||misc||step into||Mattias: Cmd-Alt-R | |F7||misc||step into||Mattias: Cmd-Alt-R | ||
− | |---- class=" | + | |---- class="working" |
− | |Ctrl-F7||misc||evaluate|| | + | |Ctrl-F7||misc||evaluate||Ctrl-Shift-E |
|---- class="working" | |---- class="working" | ||
|F8||misc||step over||Mattias: Cmd-Shift-R | |F8||misc||step over||Mattias: Cmd-Shift-R | ||
Line 56: | Line 56: | ||
|---- class="working" | |---- class="working" | ||
|Ctrl-F11||misc||open project||Apple: misc, Mattias: no key for 'open project' | |Ctrl-F11||misc||open project||Apple: misc, Mattias: no key for 'open project' | ||
− | |---- class=" | + | |---- class="working" |
|Ctrl-Shift-F11||misc||project options||Mattias: no key for 'project options' | |Ctrl-Shift-F11||misc||project options||Mattias: no key for 'project options' | ||
|---- class="working" | |---- class="working" | ||
|F12||misc||toggle unit/form||Apple: misc, Mattias: Cmd-Alt-F | |F12||misc||toggle unit/form||Apple: misc, Mattias: Cmd-Alt-F | ||
− | |---- class=" | + | |---- class="working" |
|Ctrl-F12||misc||view units||Mattias: Ctrl-Alt-T | |Ctrl-F12||misc||view units||Mattias: Ctrl-Alt-T | ||
− | |---- class=" | + | |---- class="working" |
|Shift-F12||misc||view forms||Mattias: Ctrl-Shift-T | |Shift-F12||misc||view forms||Mattias: Ctrl-Shift-T | ||
|---- class="working" | |---- class="working" |
Revision as of 21:15, 29 July 2008
Key mapping
All shortcuts can be edited in Environment / Editor Options / Key mapping. See Key Mapping.
Mac OS X
Mac OS X has quite different key policies. For example most F keys are used by the OS, there are no menu Alt shortcuts and there are large guidelines (contrary to linux and windows where only a few keys work the same under all programs).
The apple human interface guidelines for key bindings can be seen here: [1]
Conflicts with default lazarus key map
Here is the list with the conflicts of the default lazarus key mapping:
Keys | Function defined by Apple | Conflict with lazarus default | Solution |
---|---|---|---|
F1 | misc | help | Apple: Cmd-[Shift]-? |
Ctrl-Shift-F1 | misc | help editor | Mattias: Cmd-Alt-[Shift]-? |
Ctrl-F2 | misc | stop program | Xcode: Shift-Cmd-Enter |
F3 | misc | find next | Apple: Cmd-G |
Shift-F3 | misc | find previous | Apple: Cmd-Shift-G |
F4 | misc | run to cursor | Apple: misc, Mattias: no shortcut for 'run to cursor' |
Ctrl-F4 | misc | close file | Apple: Cmd-Shift-W |
F5 | misc | add breakpoint | Xcode: Cmd-\ |
Ctrl-F5 | misc | add watch | Apple: misc, Mattias: no shortcut for add watch |
Ctrl-F8 | misc | jump next error | Xcode: Cmd-= |
Ctrl-Shift-F8 | misc | jump previous error | Xcode: Cmd-+ |
F7 | misc | step into | Mattias: Cmd-Alt-R |
Ctrl-F7 | misc | evaluate | Ctrl-Shift-E |
F8 | misc | step over | Mattias: Cmd-Shift-R |
F9 | misc | run | Xcode: Cmd-R |
Ctrl-F9 | misc | build | Xcode: Cmd-B |
F11 | misc | toggle OI | Mattias: Alt-Cmd-I |
Shift-F11 | misc | add unit to project | Xcode: Alt-Cmd-A |
Ctrl-F11 | misc | open project | Apple: misc, Mattias: no key for 'open project' |
Ctrl-Shift-F11 | misc | project options | Mattias: no key for 'project options' |
F12 | misc | toggle unit/form | Apple: misc, Mattias: Cmd-Alt-F |
Ctrl-F12 | misc | view units | Mattias: Ctrl-Alt-T |
Shift-F12 | misc | view forms | Mattias: Ctrl-Shift-T |
[Shift]-Up,Down,Right,Left | move cursor | ||
Alt-[Shift]-Left/Right | jump to next word | ||
Alt-Up/Down | jump to start/end of paragraph (laz: Ctrl Q,B) | find declaration | Mattias: find declaration |
Cmd-[Shift]-Left/Right | jump to start/end of line (laz:Home/End) | jump next word | Apple: Alt-Left/Right |
Cmd-Alt-Left/Right | Xcode: switch file | ||
Cmd-Alt-Up/Down | Xcode: jump source/header | ||
Cmd-Up/Down | jump to start/end of file (laz:Ctrl-Home) | scroll one up/down | Apple: jump to start/end of file |
Ctrl-Up/Down | Mattias: scroll one up/down | ||
Cmd-Shift-Up/Down | select to start/end of file (laz:Shift-Ctrl-Home) | method jump | Apple: select to start/end of file |
Ctrl-Shift-Up/Down | Mattias: method jump | ||
Cmd-[Shift]-? | show context help | ||
Delete/Backspace | delete char | ||
[Shift]-PageUp/Down | jump page up/down | ||
[Shift]-Home/End | jump to start/end of file (laz:Ctrl-Home) | jump to start/end of line | Apple: jump to start/end of file |
Cmd-[Shift]-Tab | switch application | jump prev/next file | Apple: switch app |
Ctrl-[Shift]-Tab | jump to next control | ||
Ctrl-. | identifier completion | Xcode | |
Shift-Ctrl-. | word completion | Xcode | |
Cmd-*-Space | spotlight, apple reserved | identifier completion | Apple: misc |
Ctrl-Space | Xcode: set mark | Mattias: identifier completion | |
Cmd-Alt-Escape | force quit | ||
Cmd-A | select all | ||
Cmd-C | copy | ||
Cmd-Alt-D | show/hide dock | ||
Cmd-Ctrl-D | dictionary | ||
Cmd-E | find word at cursor | incremental find | find is smart to auto use word at cursor. incremental find. |
Cmd-F | find | ||
Cmd-Alt-F | Xcode: view details | Mattias: Toggle Unit/Form | |
Cmd-G | find next (laz:F3) | goto line | Apple: find next |
Cmd-Shift-G | find previous (laz:Shift-F3) | insert guid | |
Ctrl-Shift-G | insert guid | Mattias: insert guid | |
Cmd-[Alt]-H | hide app | jump back | Apple: hide app |
Ctrl-[Shift]-H | Mattias: jump history backward/forward | ||
Ctrl-I | indent selection | Xcode: indent selection | |
Cmd-L | Xcode: goto line | ||
Cmd-M | minimize window | ||
Cmd-Alt-M | minimize app | ||
Cmd-N | new file | ||
Cmd-O | open file | ||
Cmd-Q | quit (laz: none) | goto line | Apple: quit |
Cmd-Shift-Q | log out | ||
Cmd-R | Xcode: build and run | search and replace | Xcode: run |
Cmd-Shift-R | Mattias: step over | ||
Cmd-Alt-R | Mattias: step into | ||
Cmd-S | save | ||
Cmd-Shift-S | Save As (laz: none) | save all | Apple: Cmd-Alt-S |
Cmd-Alt-S | Save All | ||
Cmd-V | paste | ||
Cmd-W | close window (laz: none) | word completion | Apple: close window |
Cmd-Shift-W | close file | ||
Cmd-Alt-W | close all files | ||
Cmd-X | cut | ||
Cmd-Z | undo | ||
Control | The control modifier is used by cocoa in text fields. So it is free for designer and source editor functions | ||
Alt-1-9 | create special chars on some layouts | ||
Ctrl-1-9 | jump to bookmark | ||
Ctrl-Shift-1-9 | set bookmark | ||
Cmd-*-1-9 | apple functions like capture screen |
XCode
XCode is Apple's own development environment. Here are the XCode shortcuts: [2]