Lazarus IDE Shortcuts

From Lazarus-ccr

Jump to: navigation, search

Contents

[edit] Key mapping

All shortcuts can be edited in Environment / Editor Options / Key mapping. See Key Mapping.

[edit] Gnome

The default key mapping for windows fits quite good under gnome.

[edit] KDE

The default key mapping for windows fits quite good under KDE. Some keys like F9 are used by KDE.


[edit] Mac OS X (Apple style)

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]

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

A Mac OS X key map is available for lazarus and can be set via IDE menu / environment / editor options / key mapping / choose scheme / Mac OS X.


Keys Function defined by Apple Conflict with lazarus default Solution
F1mischelpApple: Cmd-[Shift]-?
Ctrl-Shift-F1mischelp editorMattias: Cmd-Alt-[Shift]-?
Ctrl-F2miscstop programXcode: Shift-Cmd-Enter
F3miscfind nextApple: Cmd-G
Shift-F3miscfind previousApple: Cmd-Shift-G
F4miscrun to cursorApple: misc, Mattias: no shortcut for 'run to cursor'
Ctrl-F4miscclose fileApple: Cmd-Shift-W
F5miscadd breakpointXcode: Ctrl-P
Ctrl-F5miscadd watchApple: misc, Mattias: no shortcut for add watch
Ctrl-F8miscjump next errorXcode: Cmd-+
Ctrl-Shift-F8miscjump previous errorXcode: Cmd-Shift-+
F7miscstep intoMattias: Cmd-Alt-R
Ctrl-F7miscevaluateCtrl-Shift-E
F8miscstep overMattias: Cmd-Shift-R
F9miscrunXcode: Cmd-R
Ctrl-F9miscbuildXcode: Cmd-B
F11misctoggle OIMattias: Alt-Cmd-I
Shift-F11miscadd unit to projectXcode: Alt-Cmd-A
Ctrl-F11miscopen projectApple: misc, Mattias: no key for 'open project'
Ctrl-Shift-F11miscproject optionsMattias: no key for 'project options'
F12misctoggle unit/formApple: misc, Mattias: Cmd-Alt-F
Ctrl-F12miscview unitsMattias: Ctrl-Alt-U
Shift-F12miscview formsMattias: Ctrl-Shift-U
[Shift]-Up,Down,Right,Leftmove cursor
Alt-[Shift]-Left/Rightjump to next word
Alt-Up/Downjump to start/end of paragraph (laz: Ctrl Q,B)find declarationMattias: find declaration
Cmd-[Shift]-Left/Rightjump to start/end of line (laz:Home/End)jump next wordApple: jump to start/end of line
Cmd-Alt-Left/RightXcode: switch file
Cmd-Alt-Up/DownXcode: jump source/header
Cmd-Up/Downjump to start/end of file (laz:Ctrl-Home)scroll one up/downApple: jump to start/end of file
Ctrl-Up/DownMattias: scroll one up/down
Cmd-Shift-Up/Downselect to start/end of file (laz:Shift-Ctrl-Home)method jumpApple: select to start/end of file
Ctrl-Shift-Up/DownMattias: method jump
Cmd-[Shift]-?show context help
Delete/Backspacedelete char
[Shift]-PageUp/Downjump page up/down
[Shift]-Home/Endjump to start/end of file (laz:Ctrl-Home)jump to start/end of lineApple: jump to start/end of file
Cmd-[Shift]-Tabswitch applicationjump prev/next fileApple: switch app
Ctrl-[Shift]-Tabjump to next control
Cmd-*-Spacespotlight, apple reservedidentifier completionApple: misc
Ctrl-SpaceXcode: set markMattias: identifier completion
Shift-Ctrl-SpaceMattias: code context
Alt-Ctrl-SpaceMattias: word completion
Cmd-Alt-Escapeforce quit
Cmd-Aselect all
Cmd-Ccopy
Cmd-Alt-Dshow/hide dock
Cmd-Ctrl-Ddictionary
Cmd-Efind word at cursorincremental findfind is smart to auto use word at cursor. incremental find.
Cmd-Ffind
Cmd-Alt-FXcode: view detailsMattias: Toggle Unit/Form
Cmd-Gfind next (laz:F3)goto lineApple: find next
Cmd-Shift-Gfind previous (laz:Shift-F3)insert guid
Ctrl-Shift-Ginsert guidMattias: insert guid
Cmd-[Alt]-Hhide appjump backApple: hide app
Ctrl-[Shift]-HMattias: jump history backward/forward
Ctrl-Iindent selectionXcode: indent selection
Cmd-LXcode: goto line
Cmd-Mminimize window
Cmd-Alt-Mminimize app
Cmd-Nnew file
Cmd-Shift-NTom: Insert line
Cmd-Oopen file
Cmd-Qquit (laz: none)goto lineApple: quit
Cmd-Shift-Qlog out
Cmd-RXcode: build and runsearch and replaceXcode: run
Cmd-Shift-RMattias: step over
Cmd-Alt-RMattias: step into
Cmd-Ssave
Cmd-Shift-SSave As (laz: none)save allApple: Cmd-Shift-S
Cmd-Alt-SSave All
Cmd-Vpaste
Cmd-Wclose window (laz: none)word completionApple: close window
Cmd-Shift-WXcode: close file
Cmd-Alt-Wclose all files
Cmd-Xcut
Cmd-YTom: delete to end of line
Cmd-Zundo
ControlThe control modifier is used by cocoa in text fields. So it is free for designer and source editor functions
Alt-1-9create special chars on some layouts
Ctrl-1-9jump to bookmark
Ctrl-Shift-1-9set bookmark
Cmd-*-1-9apple functions like capture screen

[edit] Mac OS X (Lazarus style)

The Apple scheme of keys can be hard on Lazarus users which work with it on several platforms, because many of them are very different from the Windows and Linux schemes. To minimize this problem a new Scheme was created which is a copy of the default Mac OS X scheme (with Apple style), but does some changes to have keys similar to those in other platforms.

Bellow are the keys which differ from the standard Mac OS X with Apple style:


Keys Function in Apple style Function in Lazarus style
Home/Endjump to start/end of filejump to start/end of line