Difference between revisions of "Lazarus IDE Shortcuts"

From Lazarus wiki
(Mac OS X)
Line 9: Line 9:
 
The apple human interface guidelines for key bindings can be seen here:
 
The apple human interface guidelines for key bindings can be seen here:
 
[http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGUserInput/chapter_12_section_3.html]
 
[http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGUserInput/chapter_12_section_3.html]
 +
 +
===Conflicts with default lazarus key map===
  
 
Here is the list with the conflicts of the default lazarus key mapping:
 
Here is the list with the conflicts of the default lazarus key mapping:
 +
{| BORDER="1" CELLSPACING="0"
 +
!COLSPAN="1" STYLE="background:#ffdead;"|'''Keys'''
 +
!COLSPAN="1" STYLE="background:#ffdead;"|'''Function defined by Apple'''
 +
!COLSPAN="1" STYLE="background:#ffdead;"|'''Conflict with lazarus default'''
 +
|---- class="working"
 +
|[Cmd]-F||A few F key combos are free, but this seems to depend on version and layout. So better not use them.||F3 find next, Shift-F3 find previous, Ctrl-F8 jump next error, Ctrl-Shift-F8 jump previous error, F5 add breakpoint, Ctrl-F4 close file, F11 toggle OI, Ctrl-F12 view units, Shift-F12 view forms, F12 toggle unit/form, Ctrl-F11 open project, Shift-F11 add unit to
 +
project, Ctrl-Shift-F11 project options, Ctrl-F9 build, F9 run, F7 step into, F8 step over, F4 run to cursor, Ctrl-F2 stop program, Ctrl-F7 evaluate, Ctrl-F5 add watch, F1 help, Ctrl-Shift-F1 help editor
 +
|---- class="working"
 +
|[Shift]-Up,Down,Right,Left||move cursor||
 +
|---- class="working"
 +
|Alt-[Shift]-Left/Right||jump to next word Alt-Up/Down: jump to start/end of paragraph||find declaration
 +
|---- class="working"
 +
|Cmd-[Shift]-Left/Right||jump to start/end of line||jump next word
 +
|---- class="working"
 +
|Cmd-Up/Down||jump to start/end of file||scroll one up/down
 +
|---- class="working"
 +
|Cmd-Shift-Up/Down||select to start/end of file||method jump
 +
|---- class="working"
 +
|Cmd-?||show context help||
 +
|---- class="working"
 +
|Delete/Backspace||delete char||
 +
|---- class="working"
 +
|[Shift]-PageUp/Down||jump page up/down||
 +
|---- class="working"
 +
|Home/End||jump to start/end of file||jump to start/end of line
 +
|---- class="working"
 +
|Cmd-[Shift]-Tab||switch application||jump prev/next file
 +
|---- class="working"
 +
|Cmd-Alt-D||show/hide dock||
 +
|---- class="working"
 +
|Cmd-Ctrl-D||dictionary||
 +
|---- class="working"
 +
|Cmd-*-Space||spotlight, apple reserved||
 +
|---- class="working"
 +
|Cmd-Alt-Escape||force quit||
 +
|---- class="working"
 +
|Cmd-A||select all||
 +
|---- class="working"
 +
|Cmd-C||copy||
 +
|---- class="working"
 +
|Cmd-E||find word at cursor||incremental find, solved
 +
|---- class="working"
 +
|Cmd-F||find||
 +
|---- class="working"
 +
|Cmd-Alt-F||incremental search||
 +
|---- class="working"
 +
|Cmd-G||find next||goto line
 +
|---- class="working"
 +
|Cmd-Shift-G||find previous||insert guid
 +
|---- class="working"
 +
|Cmd-[Alt]-H||hide app||jump back
 +
|---- class="working"
 +
|Cmd-M||minimize window||
 +
|---- class="working"
 +
|Cmd-Alt-M||minimize app||
 +
|---- class="working"
 +
|Cmd-N||new file||
 +
|---- class="working"
 +
|Cmd-O||open file||
 +
|---- class="working"
 +
|Cmd-Q||quit||goto line
 +
|---- class="working"
 +
|Cmd-Shift-Q||log out||
 +
|---- class="working"
 +
|Cmd-S||save||
 +
|---- class="working"
 +
|Cmd-Shift-S||Save As||save all
 +
|---- class="working"
 +
|Cmd-Alt-S||Save All||
 +
|---- class="working"
 +
|Cmd-V||paste||
 +
|---- class="working"
 +
|Cmd-W||close window||word completion
 +
|---- class="working"
 +
|Cmd-Shift-W||close file||
 +
|---- class="working"
 +
|Cmd-Alt-W||close all files||
 +
|---- class="working"
 +
|Cmd-X||cut||
 +
|---- class="working"
 +
|Cmd-Z||undo||
 +
|---- class="working"
 +
|Control||The control modifier is used by cocoa in text fields. So it is free for designer and source editor functions||
 +
|---- class="working"
 +
|Control-1-9||create special chars on some layouts||bookmark commands
 +
|---- class="working"
 +
|Cmd-*-1-9||apple functions like capture screen||bookmark commands
 +
|}
  
[Cmd]-F keys. A few F key combos are free, but this seems to depend on version
+
===XCode===
and layout. So better not use them. (conflicts: F3 find next, Shift-F3 find
+
XCode is Apple's own development environment. Here are the XCode shortcuts: [http://www.1729.us/xcode/Xcode%20Shortcuts%20B_W.png]
previous, Ctrl-F8 jump next error, Ctrl-Shift-F8 jump previous error, F5 add
 
breakpoint, Ctrl-F4 close file, F11 toggle OI, Ctrl-F12 view units, Shift-F12
 
view forms, F12 toggle unit/form, Ctrl-F11 open project, Shift-F11 add unit to
 
project, Ctrl-Shift-F11 project options, Ctrl-F9 build, F9 run, F7 step into,
 
F8 step over, F4 run to cursor, Ctrl-F2 stop program, Ctrl-F7 evaluate, Ctrl-F5
 
add watch, F1 help, Ctrl-Shift-F1 help editor)
 
 
 
[Shift]-Up,Down,Right,Left - move cursor
 
Alt-[Shift]-Left/Right: jump to next word
 
Alt-Up/Down: jump to start/end of paragraph (conflict: find declaration)
 
Cmd-[Shift]-Left/Right: jump to start/end of line (conflict: jump next word)
 
Cmd-Up/Down: jump to start/end of file (conflict: scroll one up/down)
 
Cmd-Shift-Up/Down: select to start/end of file (conflict: method jump)
 
 
 
Cmd-?: show context help
 
 
 
Delete/Backspace: delete char
 
[Shift]-PageUp/Down: jump page up/down
 
 
 
Home/End: jump to start/end of file (conflict: jump to start/end of line)
 
 
 
Cmd-[Shift]-Tab: switch application (conflict: jump prev/next file)
 
Cmd-Alt-D: show/hide dock
 
Cmd-Ctrl-D: dictionary
 
Cmd-*-Space: spotlight, apple reserved
 
Cmd-Alt-Escape: force quit
 
Cmd-A: select all
 
Cmd-C: copy
 
Cmd-E: find word at cursor (conflict: incremental find, solved)
 
Cmd-F: find
 
Cmd-Alt-F: incremental search
 
Cmd-G: find next (conflict: goto line)
 
Cmd-Shift-G: find previous (conflict: insert guid)
 
Cmd-[Alt]-H: hide app (conflict: jump back)
 
Cmd-M: minimize window
 
Cmd-Alt-M: minimize app
 
Cmd-N: new file
 
Cmd-O: open file
 
Cmd-Q: quit (conflict: goto line)
 
Cmd-Shift-Q: log out
 
Cmd-S: save
 
Cmd-Shift-S: Save As (conflict: save all)
 
Cmd-Alt-S: Save All
 
Cmd-V: paste
 
Cmd-W: close window (conflict: word completion)
 
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.
 
 
 
Control-1-9 create special chars on some layouts (conflicts: bookmark commands).
 
Cmd-*-1-9 apple functions like capture screen (conflicts: bookmark commands).
 
 
 
 
 
Here are the XCode shortcuts: [http://www.1729.us/xcode/Xcode%20Shortcuts%20B_W.png]
 

Revision as of 14:38, 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
[Cmd]-F A few F key combos are free, but this seems to depend on version and layout. So better not use them. F3 find next, Shift-F3 find previous, Ctrl-F8 jump next error, Ctrl-Shift-F8 jump previous error, F5 add breakpoint, Ctrl-F4 close file, F11 toggle OI, Ctrl-F12 view units, Shift-F12 view forms, F12 toggle unit/form, Ctrl-F11 open project, Shift-F11 add unit to

project, Ctrl-Shift-F11 project options, Ctrl-F9 build, F9 run, F7 step into, F8 step over, F4 run to cursor, Ctrl-F2 stop program, Ctrl-F7 evaluate, Ctrl-F5 add watch, F1 help, Ctrl-Shift-F1 help editor

[Shift]-Up,Down,Right,Left move cursor
Alt-[Shift]-Left/Right jump to next word Alt-Up/Down: jump to start/end of paragraph find declaration
Cmd-[Shift]-Left/Right jump to start/end of line jump next word
Cmd-Up/Down jump to start/end of file scroll one up/down
Cmd-Shift-Up/Down select to start/end of file method jump
Cmd-? show context help
Delete/Backspace delete char
[Shift]-PageUp/Down jump page up/down
Home/End jump to start/end of file jump to start/end of line
Cmd-[Shift]-Tab switch application jump prev/next file
Cmd-Alt-D show/hide dock
Cmd-Ctrl-D dictionary
Cmd-*-Space spotlight, apple reserved
Cmd-Alt-Escape force quit
Cmd-A select all
Cmd-C copy
Cmd-E find word at cursor incremental find, solved
Cmd-F find
Cmd-Alt-F incremental search
Cmd-G find next goto line
Cmd-Shift-G find previous insert guid
Cmd-[Alt]-H hide app jump back
Cmd-M minimize window
Cmd-Alt-M minimize app
Cmd-N new file
Cmd-O open file
Cmd-Q quit goto line
Cmd-Shift-Q log out
Cmd-S save
Cmd-Shift-S Save As save all
Cmd-Alt-S Save All
Cmd-V paste
Cmd-W close window word completion
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
Control-1-9 create special chars on some layouts bookmark commands
Cmd-*-1-9 apple functions like capture screen bookmark commands

XCode

XCode is Apple's own development environment. Here are the XCode shortcuts: [2]