Shortcuts Delphi for Windows

193 shortcuts2,291 views
Open Trainer

WindowsAction
EscSelects parent control in design mode Left mouse click+Esc drags the parent control
Shift+ClickAfter selecting control in form designer, click on it with Shift again to select top most parent Form
TabIn Object Inspector activates incremental search for properties. Press again Tab to move focus to property value
Ctrl+JInvoke Code Templates also called Code Snippets
Ctrl+TDelete text from cursor position until end of word
Ctrl+EIncremental Search
Ctrl+YDelete current line
Ctrl+BInvoke buffer window when focus is on editor. The buffer window shows a list of all different tabs.
Ctrl+Shift+GInsert a new GUID at the cursor position
Ctrl+Shift+IIndent the current selected block
Ctrl+Shift+UUnindent the current selected block
Ctrl+K+IIndent the current selected block or current line in case of no selection
Ctrl+K+UUnindent the current selected block or current line in case of no selection
Ctrl+Shift+JInvoke SyncEdit
Ctrl+Shift+VAutomatically Declare Variable at cursor position
Ctrl+Shift+YDelete to the end of line
Alt+[Match pair forward
Alt+]Match pair backward
Alt+Right ArrowBrowse Forward (hotlink history)
Alt+Left ArrowBrowse Backward (hotlink history)
Alt+Up ArrowBrowse to symbol under editor cursor (invoke a hotlink and add it to the hotlink history)
F4Run program to current cursor position
F5Toggle Breakpoint
F7Debugger step into
Shift+F7Trace into next source line
F8Debugger step over
Shift+F8Run until return
F9Run program under debugger
Ctrl+F2Program Reset
Ctrl+F7Evaluate/modify
Ctrl+F5Add Watch
Ctrl+F12View units
Alt+GGoto line number in editor
Ctrl+O+GGoto line number in editor
Ctrl+Shift+RStart/stop Recording editor macro
Ctrl+Shift+PPlay editor macro
Ctrl+SpacebarInvoke code completion
Ctrl+Shift+SpacebarInvoke code parameter hints
Ctrl+EnterOpen file at cursor
Ctrl+Shift+EnterFind all references
Ctrl+Shift+CInvoke class completion for the class that currently contains the cursor
Ctrl+Shift+Up ArrowNavigate to method implementation/declaration
Ctrl+Shift+Down ArrowNavigate to method implementation/declaration
Ctrl+Shift+1..9Set a bookmark at current row in the source
Ctrl+1..9Go to a bookmark row in the source
Ctrl+Alt+F12Opens the drop-down on the top-right corner of the code editor, listing all open files
Ctrl+Alt+Mouse WheelNavigate to previous or next method implementation in lexical order in this source unit, or within the class to which scope has been limited using Ctrl+Q+L
Ctrl+Alt+Up ArrowNavigate to previous method implementation in lexical order in this source unit, or within the class to which scope has been limited using Ctrl+Q+L
Ctrl+Alt+Down ArrowNavigate to next method implementation in lexical order in this source unit, or within the class to which scope has been limited using Ctrl+Q+L
Ctrl+Alt+HomeNavigate to the lexically first method implementation in this source unit, or within the class to which scope has been limited using Ctrl+Q+L
Ctrl+Alt+EndNavigate to the lexically last method implementation in this source unit, or within the class to which scope has been limited using Ctrl+Q+L
Ctrl+Alt+PActivate the Tool Palette in filtering mode (start typing, press Enter to drop component)
Ctrl+Alt+AAdds current date to source code
Ctrl+/Toggle comment per line or selected block and cursors goes down one line, Ctrl+#
Ctrl+Shift+TAdd Todo list item
Alt+F12Toggle between Form as text mode or design mode
Alt+F11Invoke Use unit dialog
Ctrl+F11Invoke Open Project Dialog
Ctrl+Alt+F11Invoke Project manager window
F11Invoke Object Inspector window
F12Toggle between code view and design view
Alt+0Invoke Window list
Shift+Alt+F11Invoke Structure window
Ctrl+Shift+BInvoke Browser window
Ctrl+Alt+BInvoke Breakpoint window
Ctrl+Alt+SInvoke Call Stack window
Ctrl+Alt+WInvoke Watches window
Ctrl+Alt+LInvoke Local Variables window
Ctrl+Alt+TInvoke Threads window
Ctrl+Alt+FInvoke FPU window
Ctrl+Alt+CInvoke CPU window
Ctrl+Alt+VInvoke Event window
Ctrl+Alt+MInvoke Modules window
Shift+F12Invoke Forms window
Ctrl+Shift+AInvoke Add to uses clause window
Ctrl+Shift+F11Invoke Project Options window
Ctrl+F9Compile Project
Shift+F9Build Project
Shift+F11Invoke Add to project window
Shift+Ctrl+F9Run without debugging
Ctrl+FFind
Shift+Ctrl+FFind in Files
Alt+F7/F8Previous/Next result (for Find in Files and Build Error Messages)
Ctrl+K+EChanges a word to lowercase and deselects selection
Ctrl+K+FChanges a word to uppercase and deselects selection
Ctrl+K+OChanges a word to lowercase
Ctrl+K+NChanges a word to uppercase
Ctrl+O+UToggles case
Ctrl+Shift+K+OToggles Code folding between On and Off
Ctrl+Shift+K+ACode folding: Expands All blocks of code
Ctrl+Shift+K+ECode folding: Collapse current block of code
Ctrl+Shift+K+UCode folding: Expand current block of code
Ctrl+Shift+K+TCode folding: Toggle Current block (expand & collapse)
Ctrl+Shift+K+RCode folding: Collapses All Regions {$region 'comment'}..{$endregion}
Ctrl+Shift+K+PCode folding: Collapse Nested Procedures
Ctrl+Shift+K+MCode folding: Collapse All Methods
Ctrl+Shift+K+CCode folding: Collapse All Classes
Ctrl+Shift+K+GCode folding: Collapses down to Primary Groups (Interface/Implementation)
Ctrl+Shift+K+NCode folding: Collapses Namespace/Unit
Ctrl+TabSwitch to the next open file in the editor
Ctrl+Shift+TabSwitch to the previous open file in the editor
Ctrl+K+PInvokes Print selection dialog
Ctrl+K+WInvokes Write block to file(selected text)
Ctrl+K+RInvokes Read block from file(inserts text at cursor)
Ctrl+K+CCopies selected text at the end of the selection
Ctrl+K+TSelect word at cursor position
Ctrl+O+CTurns on block selection mode
Ctrl+O+LSelects current Line (and turns off block selection mode)
Ctrl+Q+LToggles between limiting the Ctrl+Alt navigation shortcuts to the current class, or limiting it to the current unit
Ctrl+Q+WGo to next item of Messages Window
Ctrl+F6Switches between source (.cpp) and header (.h)
Alt+BackspaceUndo
Alt+F10Display Popup menu
Alt+Shift+Down ArrowMoves the cursor down one line and selects the column from the left of the starting cursor position
Alt+Shift+EndSelects the column from the cursor position to the end of the current line
Alt+Shift+HomeSelects the column from the cursor position to the start of the current line
Alt+Shift+Left ArrowSelects the column to the left of the cursor
Alt+Shift+PgDnMoves the cursor down one line and selects the column from the right of the starting cursor position
Alt+Shift+PgUpMoves the cursor up one screen and selects the column from the left of the starting cursor position
Alt+Shift+Right ArrowSelects the column to the right of the cursor
Alt+Shift+Up ArrowMoves the cursor up one line and selects the column from the left of the starting cursor position
Alt+XCut word under cursor / current selected block
Ctrl+CCopy word under Cursor / selected block
Ctrl+ASelect all
Ctrl+BackspaceDelete the word to the beginning
Ctrl+DDeletes a currently selected block
Ctrl+Down ArrowScrolls down one line
Ctrl+EndMoves to the end of a file
Ctrl+F1Topic Search
Ctrl+F10Open Main Menu
Ctrl+HomeMoves to the top of a file
Ctrl+HReplace Dialog
Ctrl+IInserts a tab character
Ctrl+InsertCopy selected Block
Ctrl+LFind again
Ctrl+Left ArrowMoves one word left
Ctrl+MInsert new line
Ctrl+NInsert new line after cursor (cursor stays in current line)
Ctrl+O+AOpen file at cursor
Ctrl+O+BBrowse symbol at cursor
Ctrl+O+OInserts compiler options and directives
Ctrl+PgDnMoves to the bottom of a screen
Ctrl+PgUpMoves to the top of a screen
Ctrl+Q+ASearch Replace Dialog
Ctrl+Q+BMoves cursor to the beginning of a block
Ctrl+Q+CMoves cursor to end of a file
Ctrl+Q+DMoves cursor to the end of a line
Ctrl+Q+EMoves cursor to the top of the window
Ctrl+Q+FSearch Find Dialog
Ctrl+Q+KMoves cursor to the end of a block
Ctrl+Q+PMoves cursor to previous position
Ctrl+Q+RMoves cursor to the beginning of a file
Ctrl+Q+SMoves cursor to the beginning of a line
Ctrl+Q+TMoves cursor to the top of the window
Ctrl+Q+UMoves cursor to the bottom of the window
Ctrl+Q+XMoves cursor to the bottom of the window
Ctrl+Q+YDeletes to the end of Line
Ctrl+RReplace Dialog
Ctrl+Right ArrowMoves one word right
Ctrl+SSave
Ctrl+Shift+SSave All
Ctrl+Shift+EndSelects from the cursor position to the end of the current file
Ctrl+Shift+HomeSelects from the cursor position to the start of the current file
Ctrl+Shift+Left ArrowSelects the word to the left of the cursor
Ctrl+Shift+PgDnSelects from the cursor position to the bottom of the screen
Ctrl+Shift+PgUpSelects from the cursor position to the top of the screen
Ctrl+Shift+Right ArrowSelects the word to the right of the cursor
Ctrl+Shift+ZRedo
Ctrl+Up ArrowScrolls up one line
Ctrl+VPaste
Ctrl+ZUndo
F1Display Help
F3Find again
InsertInsert Mode On / Off
Shift+Down ArrowMoves the cursor down one line and selects from the right of the starting cursor position.
Shift+EndSelects from the cursor position to the end of the current line
Shift+EnterInserts a new line with a carriage return
Shift+HomeSelects from the cursor position to the start of the current line
Shift+InsertPaste from clipboard
Shift+Left ArrowSelects the character to the left of the cursor
Shift+PgDnMoves the cursor down one line and selects from the right of the starting cursor position
Shift+PgUpMoves the cursor up one screen and selects from the left of the starting cursor position
Shift+Right ArrowSelects the character to the right of the cursor
Shift+TabMoves the cursor to the left one tab position
Shift+Up ArrowMoves the cursor up one line and selects from the left of the starting cursor position
Ctrl+Alt+Shift+EndSelects the column from the cursor position to the end of the current file
Ctrl+Alt+Shift+HomeSelects the column from the cursor position to the start of the current file
Ctrl+Alt+Shift+Left ArrowSelects the column to the left of the cursor
Ctrl+Alt+Shift+PgDnSelects the column from the cursor position to the top of the screen
Ctrl+Alt+Shift+PgUpSelects the column from the cursor position to the bottom of the screen
Ctrl+Alt+Shift+Right ArrowSelects the column to the right of the cursor
Alt+F12Select editor window tab
F6/Ctrl+.IDE Insight