Jumat, 22 Maret 2019

Keyboard Shortcuts Delphi

Default Keyboard Shortcuts

General Keyboard Shortcuts

ShortcutMenuAction
F1
Opens the help topic on a selected item.
Ctrl+F11
File > Open Project
Opens a project file using the Open Projectdialog.
Ctrl+S
File > Save
Saves only the module that is currently open in the IDE (and any associated header files).
Shift+Ctrl+S
File > Save All
Saves all the files for the current project.
Alt+F11
File > Use Unit
Opens the Use Unit dialog box where you can select and insert a reference to another unit into the unit currently active in the Code Editor.
Shift+F11
Adds a file to the project using the Add to Project dialog.
Ctrl+Z
Edit > Undo
Form Designer | right-click a component | Edit > Undo
Reverts the previous actions.
Shift+Ctrl+Z
Edit > Redo
Re-executes the last command.
Ctrl+D
Edit > Format Source
Formats the code.
Ctrl+X
Edit > Cut
Form Designer | right-click a component | Edit > Cut
Removes the current selection and stores it to the clipboard.
Ctrl+C
Edit > Copy 
Form Designer | right-click a component | Edit > Copy
Copies the current selection to the clipboard.
Ctrl+V
Edit > Paste
Form Designer | right-click a component | Edit > Paste
Inserts the contents of the clipboard previously captured using Cut or Copy.
Ctrl+Del
Edit > Delete
Form Designer | right-click a component | Edit > Delete
Removes the selected text or objects.
Ctrl+A
Edit > Select All
Form Designer | right-click a component | Edit > Select All
Selects all the text or objects in the active window.
Ctrl+H
Edit > Hide Non-Visual Components
Form Designer | right-click | Hide Non-Visual Components
Toolbars | View | Hide Non-Visual Components
Tools > Options > Form Designer > Options > Show non-visual componentscheckmark
Hides the non-visual components at design time. It applies to RAD Studio Seattle and superior.
Ctrl+F / Ctrl+Q+F
Search > Find
Searches for the specified text in the active window.
Shift+Ctrl+F
Search > Find in Files
Searches for strings in files in specified folders and shows the results in the Messages Viewpane.
Ctrl+R / Ctrl+H / Ctrl+Q+A
Search > Replace
Searches for the specified text and replaces it with other text.
F3 / Ctrl L
Search > Search Again
Goes to the next coincidence of the string.
Ctrl+E
Allows you to interactively search for text.
Shift+Ctrl+Enter
Search > Find Local References (Delphi only)
Locates references in the active code file.
Ctrl+G
Search > Find Original Symbol(Delphi only)
Searches through the list of files in the Project Manager and then displays the original declaration of the symbol in question.
F6 / Ctrl+.
Search > IDE Insight
Focuses the IDE Insight search box where you can perform a filtered incremental search through the element of the IDE.
Alt+G
Jumps to the specified line number of the Code Editor.
Ctrl+Alt+B
View > Debug Windows >Breakpoints
Opens the Breakpoint List pane where you can manage your breakpoints.
Ctrl+Alt+S
View > Debug Windows > Call Stack
Opens the Call Stack pane where you can see the called functions.
Ctrl+Alt+W
View > Debug Windows >Watches
Opens the Watch List pane where you can manage and watch the values of your watches.
Ctrl+Alt+L
View > Debug Windows > Local Variables
Opens the Local variables pane where you can see local variables of the the current functions while in debug mode.
Ctrl+Alt+T
View > Debug Windows >Threads
Opens the Thread Status pane with the status of all processes and threads that are executing in each application being debugged.
Ctrl+Alt+V
View > Debug Windows > Event Log
Opens the Event Log Window with messages for breakpoints, process control, threads, modules, and output that occur during a debug session.
Ctrl+Alt+M
View > Debug Windows >Modules
Opens the Modules Window pane.
Ctrl+Alt+C
View > Debug Windows > CPU Windows > Entire CPU
Opens the Entire CPU pane view during a debugging session.
Ctrl+Alt+D
View > Debug Windows > CPU Windows >Disassembly
Displays the address, the hexadecimal representation of the machine code instructions (opcodes), and the assembly instructions for each line of source code.
Ctrl+Alt+R
View > Debug Windows > CPU Windows >Registers
This pane displays the contents of the CPU registers of the 80386 and greater processors.
Ctrl+Alt+K
View > Debug Windows > CPU Windows > Stack
Displays the raw values contained in the program stack.
Ctrl+Alt+E
View > Debug Windows > CPU Windows >Memory1
Displays the raw values contained in addressable areas of your program. There are four different Memory views in order to view four distinct areas in memory at the same time.
Ctrl+Alt+2
View > Debug Windows > CPU Windows >Memory2
Displays the raw values contained in addressable areas of your program. There are four different Memory views in order to view four distinct areas in memory at the same time.
Ctrl+Alt+3
View > Debug Windows > CPU Windows >Memory3
Displays the raw values contained in addressable areas of your program. There are four different Memory views in order to view four distinct areas in memory at the same time.
Ctrl+Alt+4
View > Debug Windows > CPU Windows >Memory4
Displays the raw values contained in addressable areas of your program. There are four different Memory views in order to view four distinct areas in memory at the same time.
Ctrl+Alt+F
View > Debug Windows > FPU
Displays the contents of the Floating-point Unit and SSE registers in the CPU.
Ctrl+Alt+O
View > Debug Windows >CodeGuard Log
Provides runtime debugging for C++ applications being developed.
Shift+Ctrl+H
View > Help Insight
Displays a hint containing information about the symbol at the cursor.
Ctrl+F12
View > Units
Displays the Search for Units dialog box with all the units in the current project.
Shift+F12
View > Forms
Displays the Search for forms dialog box with all the forms in the current project.
F12
Changes the view between the Form and the corresponding code unit.
Shift+Alt+F11
View > Structure
Opens or focuses on the Structure pane.
F11
Opens or focus on the Object Inspector.
Alt+0
View > Window List
Displays a list of open windows.
Ctrl+Alt+P
View > Tool Palette
Opens the Tool Palette pane.
Ctrl+Alt+F11
Opens the Project Manager pane.
Shift+Ctrl+E
Refactor > Rename(Delphi only)
Opens the Rename  to rename an identifier and all references to this identifier.
Shift+Ctrl+V
Refactor > Declare Variable (Delphi only)
Opens the Declare Variable window to declare a local variable in a procedure.
Shift+Ctrl+D
Refactor > Declare Field (Delphi only)
Opens the Declare New Field window to declare a type in the code.
Shift+Ctrl+M
Refactor > Extract Method (Delphi only)
Turns a selected code fragment into a method.
Shift+Ctrl+L
Refactor > Extract Resource String(Delphi only)
Converts the string currently selected in the Code Editor to a resource string.
Shift+Ctrl+X
Refactor > Change Params (Delphi only)
Adds, edits, removes, and rearranges the parameters of a method.
Shift+Ctrl+A
Refactor > Find Unit (Delphi only)
Opens the Find Unit window to locate units and add them to the uses clause of your Delphi code file.
Shift+F11
Project > Add to Project
Adds another source file to the current project.
Alt+F9
Project > Build .cpp(C++ only)
Rebuilds all files in your current project regardless of whether they have changed.
Ctrl+F9
Project > Make (C++)
Project > Compile (Delphi)
Compile (for Delphi) or Make (for C++) compiles only those files that have changed since the last build, as well as any files that depend on them.
Shift+F9
Project > Build
Rebuilds all files in your current project regardless of whether they have changed.
Shift+Ctrl+F11
Project > Options
Opens the Project Options window for the selected project.
F9
Run > Run
Compiles any changed source code and, if the compile is successful, executes your application, allowing you to use and test the application with the debugger built into the IDE.
Shift+Ctrl+F9
Compiles any changed source code, and if the compile is successful, executes your application without invoking the debugger built into the IDE.
F8
Run > Step Over
Tells the debugger to execute the next line of code. If the line contains a function, Step Overexecutes the function and then stops at the first line after the function.
F7
Run > Trace Into
Tells the debugger to execute the next line of code. If the line contains a function, Trace Intoexecutes the function and then stops at the first line of code inside the function.
Shift+F7
Executes a single source line.
F4
Executes the current program and stops at the cursor location.
Shift+F8
Executes the current program and stops when the function returns.
Ctrl+F2
Terminates the application or process that is currently under the control of the debugger.
Ctrl+F7
Evaluates or changes the value of an existing expression or property.
Ctrl+F5
Run > Add Watch
Adds a watch or changes the properties of an existing watch. The watch appears in the Watch List.
Alt+End
Window > Next Window
When the windows are floating, it toggles between windows.
Ctrl+R
Refactorings | right-click on the Refactorings pane | Apply Refactoring
Applies the refactoring definition that appears in the Refactorings pane.
Ctrl+Z
Refactorings | right-click on the Refactorings pane | Undo/Redo
Undoes the refactoring.
Del
Refactorings | right-click on the Refactorings pane | Remove
Find | right-click on the C++ Find References pane |Remove
Removes the refactoring definition of the Refactorings pane.
Ctrl+A
To-Do List | right-click on the To-Do List pane | Add
Opens the Add To-Do Item where you can introduce the new task to appear in the To-Do List pane.
F2
To-Do List | right-click on the To-Do List pane | Add
Opens the Add To-Do Item to edit the selected task.
Ctrl+C
To-Do List | right-click on the To-Do List pane | Copy As > Text
Copies the content of the To-Do List as plain text.
Ctrl+T
To-Do List | right-click on the To-Do List pane | Copy As > HTML Table
Copies the content of the To-Do List as an HTML table.
Ctrl+V
Messages | right-click on the Messages Viewpane | View Source
Opens the source file in a new tab in the Code Editor.
Ctrl+S
Messages | right-click on the Messages Viewpane | Edit Source
Highlights in red the code line related with the error that appears in the Messages pane. It opens the source file if necessary.
Click+Shift
Targets the component in the Tool Palette to make the selection repetitive. Click the component again to cancel the selection.
Esc
Displays all the categories of the Tool Palette.
Ctrl+Arrow keys
Moves the selected component.
Shift+Ctrl+Arrow
Moves the component faster.
Tab / Arrow Key
Switches between components.
Shift+Arrow Key
Changes the size of the component.
Esc
Selects the parent component.
Ctrl+Tab
Moves forward on the Editing tabs.
Shift+Ctrl+Tab
Moves backwards on the Editing tabs.
Ctrl+Tab
Switches between the Properties tab and the Events tab.
Tab
Changes the focus between the two columns of the two tabs. In the Properties name column you can navigate typing the name of the property.
Ctrl+Enter
Allows selecting an option from a combo box in the values column of the two tabs. On the Events tab, it generates the event handler and the focus changes to the code editor where it appears highlighted.
Ctrl+Alt+Down Arrow
Shows the list of values for the selected field.
+/-
Expands or contracts the tree node for the property.
Ctrl+Down Arrow
Shows all the elements of the combo box.
F12
Switches between the designer tab and the code editor tab.
Shift+Alt+F11
Focuses on the Structure pane.
Alt+F4
Closes RAD Studio.
Ctrl+Num +
Code Editor Context Menu | Increase Font Size
Increases the font size of the Code Editor.
Ctrl+Num -
Code Editor Context Menu | Decrease Font Size
Decreases the font size of the Code Editor.
Shift+Ctrl+N
Searches the entire project for definitions of the selected identifier.
Shift+Ctrl+Enter
Searches the entire active project for references to a selected identifier.
Shift+Ctrl+B
Searches the entire project for base types of the selected class or method.
Shift+Ctrl+Q
Searches the entire project for derived types of the selected class or method.

Code Editor Keyboard Shortcuts

The following table lists the Default Mapping keyboard shortcuts for the Code Editor.
Note: Keyboard shortcuts that include the Ctrl+Alt key combination are disabled when the Use Ctrl+Alt Keys option is unchecked on the Tools > Options > Editor Options > Key Mappings page.
ShortcutAction
Alt+[ / Ctrl+Q+[
Finds the forward matching delimiter.
Alt+] / Ctrl+Q+]
Finds the backward matching delimiter.
Down Arrow
Moves down one line.
Up Arrow
Moves up one line.
Right Arrow
Moves the cursor one character to the right.
Left Arrow
Moves the cursor one character to the left.
Spacebar
Inserts a space.
Tab
Inserts a tab.
End
Moves to the end of the current line.
Enter
Inserts the carriage return.
Ins
Toggles between the insert and overwrite modes.
Backspace
Deletes a character to the left of the cursor.
Del
Deletes a character to the right of the cursor.
F1
  • A pointed reserved worddirective, or C++ keyword.
  • A pointed identifier (or selected qualified identifier) corresponding to a name of a procedure, function, constant, property, variable, field, type, program, unit, library, or package described in installed CHM help files.
  • The Code Editor.
F5
Toggles between adding and removing a breakpoint in the current line.
Page Down
Moves down one page.
Page Up
Moves up one page.
Alt+Backspace / Ctrl + Z
Undo.
Alt+F7
Go to previous error or message in Messages View.
Alt+F8
Go to next error / message in Messages View.
Alt+F10 / Shift+F10
Displays the Code Editor Context Menu.
Alt+Page Down
Goes to the next tab.
Alt+Page Up
Goes to the previous tab.
Alt+Right Arrow
Goes forward after Alt+Left Arrow operation.
Alt+Shift+Backspace
Redo.
Alt+Shift+Down Arrow
Moves the cursor down one line and selects the column from the left of the starting cursor position.
Alt+Shift+End
Selects the column from the cursor position to the end of the current line.
Alt+Shift+Home
Selects the column from the cursor position to the start of the current line.
Alt+Shift+Left Arrow
Selects the column to the left of the cursor.
Alt+Shift+Page Down
Moves the cursor down one line and selects the column from the right of the starting cursor position.
Alt+Shift+Page Up
Moves the cursor up one screen and selects the column from the left of the starting cursor position.
Alt+Shift+Right Arrow
Selects the column to the right of the cursor.
Alt+Shift+Up Arrow
Moves the cursor up one line and selects the column from the left of the starting cursor position.
Alt+Up Arrow / Ctrl+Right Click
Goes to declaration.
Alt+Left Arrow
Goes back after Alt+Up Arrow or Ctrl+Click (go to declaration) operation.
Click+Alt+mousemove
Selects column-oriented blocks.
Ctrl+/
Adds or removes // to each line in the selected code block to comment the code.
Ctrl+Spacebar
Displays the Code Completion pop-up window or the Argument Value List.
Ctrl+0 (or 1-9) / Ctrl+Q+0 (or 1-9)
Goes to the corresponding bookmark.
Ctrl+K+1 (or 2-9)
Sets the bookmark.
Shift+Ctrl+1 (or 2-9)
Removes the bookmark.
Ctrl+Alt+Down Arrow
Goes to the first line of the following method in the file/class.
Ctrl+Alt+End
Goes to the last method in the file/class.
Ctrl+Alt+F12
Displays a drop down list of open files.
Ctrl+Alt+Home
Goes to the first method in the file/class.
Ctrl+Alt+N & Ctrl+Alt+U
Opens the Used Units of the Navigation Toolbar; displays a list of all the units that the current unit uses.
Ctrl+Alt+N & Ctrl+Alt+S
Opens the File Sections of the Navigation Toolbar; displays a list of sections in the file.
Ctrl+Alt+N & Ctrl+Alt+T
Opens the Types combo box of the Navigation Toolbar; displays the names of all the declared types in the current unit.
Ctrl+Alt+N & Ctrl+Alt+P
Opens the Methods combo box of the Navigation Toolbar; displays the names of all the procedures and functions of the current unit.
Ctrl+Alt+N & Ctrl+Alt+F
Opens the Project Symbol Search of the Navigation Toolbar.
Ctrl+Alt+Q & Ctrl+Alt+G
Swaps the last stack bookmark placed and the cursor location.
Ctrl+Alt+Shift+End
Selects the column from the cursor position to the end of the current file.
Ctrl+Alt+Shift+Home
Selects the column from the cursor position to the start of the current file.
Ctrl+Alt+Shift+Left Arrow
Selects the column to the left of the cursor.
Ctrl+Alt+Shift+P
Synchronizes the interface and implementation copies of your procedure and function prototypes.
Ctrl+Alt+Shift+Page Down
Selects the column from the cursor position to the top of the screen.
Ctrl+Alt+Shift+Page Up
Selects the column from the cursor position to the bottom of the screen.
Ctrl+Alt+Shift+Right Arrow
Selects the column to the right of the cursor.
Ctrl+Alt+Mouse Scroll
Hops between methods in a file/class.
Ctrl+Alt+Up Arrow
Hops to the first line of the current method or the first line of the preceding method in the file/class.
Ctrl+Backspace
Deletes the word to the left of the cursor (deletes characters to the preceding space).
Ctrl+C / Ctrl+Ins
Copies the selection to the clipboard.
Ctrl+V / Shift+Ins
Pastes a selection form the clipboard.
Ctrl+X/ Shift+Del
Cuts a selection to the clipboard.
Ctrl+Del
Deletes a currently selected block.
Ctrl+Down Arrow
Scrolls down one line.
Ctrl+End / Crtl+Q+C
Moves to the end of a file.
Ctrl+Enter / Ctrl+O+A
Opens file at cursor.
Ctrl+Home / Ctrl+Q+R
Moves the cursor to the top of a file.
Ctrl+Q+S / Home
Moves the cursor to the beginning of a line.
Ctrl+F4
Closes the current editor page.
Ctrl+F10, F10
Gives focus to Delphi's main menu instead of the cursor.
Ctrl+I / Ctrl+K+I / Shift+Ctrl+I / Tab
Inserts a tab character.
Ctrl+J
Displays the Code template completion pop-up menu.
Ctrl+K & Ctrl+G
Drops a stack bookmark in the current cursor location.
Ctrl+K+B
Marks the beginning of a block.
Ctrl+K+C
Copies the selected block.
Ctrl+K+E
Lowercases the current word.
Ctrl+K+F
Uppercases the current word.
Ctrl+K+H
Toggles a block selection.
Ctrl+K+K
Marks the end of a block.
Ctrl+K+N
Changes a selected block to uppercase.
Ctrl+K+O
Changes a selected block to lowercase.
Ctrl+K+P
Opens the Print Selection dialog box to print the selected block.
Ctrl+K+R
Opens the Read File as Block dialog box.
Ctrl+K+T
Marks a word as a block.
Ctrl+K+U / Shift+Ctrl+U / Shift+Tab
Outdents a selected line or block.
Ctrl+K+W
Opens the Write Block to File dialog box.
Ctrl+K+Y
Deletes a selected block.
Ctrl+Left Arrow
Moves the cursor one word to the left.
Ctrl+Right Arrow
Moves the cursor one word to the right.
Ctrl+N
Inserts a new line.
Ctrl+O+C
Turns on column blocking.
Ctrl+O+K
Turns off column blocking.
Ctrl+O+L
Turns on line blocking mode.
Ctrl+O+O
Inserts compiler options.
Ctrl+O+U
Toggles case of a selected block.
Ctrl+P
Causes the next character to be interpreted as an ASCII sequence.
Ctrl+Q & Ctrl+G
Picks up the last stack bookmark moving the cursor to such location.
Ctrl+Q+B
Moves the cursor to the beginning of a block.
Ctrl+Q+D / End
Moves the cursor to the end of a line.
Ctrl+Q+K
Moves the cursor to the end of a block.
Ctrl+PgDn / Ctrl+Q+X
Moves to the bottom of a screen.
Ctrl+PgUp / Ctrl+Q+E
Moves to the top of a screen.
Ctrl+Q+T
Shifts the Code Editor, moving the current line to the top of the editor window.
Ctrl+W
Selects the identifier under the cursor and then expands the selection to larger syntactic groups.
Shift+Ctrl+C
Invokes class completion for the class declaration in which the cursor is positioned.
Shift+Ctrl+B
Displays the buffer list.
Shift+Ctrl+Down Arrow
Jumps between declaration and implementation sections in the same unit.
Shift+Ctrl+J
Enter or exits the SyncEdit mode.
Shift+Ctrl+K+A
Expands all blocks of code.
Shift+Ctrl+K+C
Collapses all classes.
Shift+Ctrl+K+E
Collapses a block of code.
Shift+Ctrl+K+G
Collapses Initializes/finalize and interface/implementation.
Shift+Ctrl+K+M
Collapses all methods.
Shift+Ctrl+K+N
Collapses a namespace/Unit.
Shift+Ctrl+K+O
Toggles between enabling and disabling Code Folding.
Shift+Ctrl+K+P
Collapses nested procedures.
Shift+Ctrl+K+T
Toggles the current block between collapsed and expanded.
Shift+Ctrl+K+U
Expands a block of code.
Shift+Ctrl+F4
Closes all the editor pages except the main one.
Shift+Ctrl+End
Selects from the cursor position to the end of the current file.
Shift+Ctrl+G
Inserts a new Globally Unique Identifier (GUID).
Shift+Ctrl+Home
Selects from the cursor position to the start of the current file.
Shift+Ctrl+I
Indents a selected block.
Shift+Ctrl+Left Arrow
Selects the word to the left of the cursor.
Shift+Ctrl+P
Shift+Ctrl+PgDn
Selects from the cursor position to the bottom of the screen.
Shift+Ctrl+PgUp
Selects from the cursor position to the top of the screen.
Shift+Ctrl+R
Toggles between starting and stopping the recording of a keystroke macro.
Shift+Ctrl+Right Arrow
Selects the word to the right of the cursor.
Shift+Ctrl+Spacebar
Displays the Code Parameters pop-up window.
Shift+Ctrl+T
Opens the Add or Edit To-Do Item dialog box.
Shift+Ctrl+Tab
Moves to the previous code page (or file).
Shift+Ctrl+Up Arrow
Jumps between declaration and implementation.
Shift+Ctrl+Y / Ctrl+Q+Y
Deletes to the end of a line.
Ctrl+T
Deletes a word to the right (deletes characters to the next space) of the cursor.
Ctrl+O+G
Opens the Go to Line Number dialog box.
Ctrl+Tab
Moves to the next code page (or file).
Ctrl+Up Arrow
Scrolls up one line.
Ctrl+Y
Deletes the current line.
Ctrl+S
Saves the current file. If the file is unsaved, it opens the Save < file_name > As dialog box.
Shift+Alt+Arrow
Selects column-oriented blocks.
Shift+Backspace
Deletes the character to the left of the cursor.
Shift+Down Arrow
Moves the cursor down one line and selects from the right of the starting cursor position.
Shift+End
Selects from the cursor position to the end of the current line.
Shift+Enter
Inserts a new line with a carriage return.
Shift+Home
Selects from the cursor position to the start of the current line.
Shift+Left Arrow
Selects the character to the left of the cursor.
Shift+PgDn
Moves the cursor down one line and selects from the right of the starting cursor position.
Shift+PgUp
Moves the cursor up one screen and selects from the left of the starting cursor position.
Shift+Right Arrow
Selects the character to the right of the cursor.
Shift+Space
Inserts a blank space.
Shift+Tab
Moves the cursor to the left one tab position.
Shift+Up Arrow
Moves the cursor up one line and selects from the left of the starting cursor position.