Delphi shortcut keys

Source: Internet
Author: User

Within a process, function, or event, Shift + Ctrl + up arrow keys can jump to the corresponding process, function, and event definitions. on the contrary, in the process, function, and event definitions, Shift + Ctrl + downward arrow keys can jump to specific processes, functions, and events.
CTRL + Shift + C: write a statement or add a function.
For example:
Procedure TT. A (AA: string); // function declaration
Run Ctrl + Shift + C.
Procedure TT. A (AA: string );
Begin
End;

Shift + Ctrl + e show Explorer

Crtl + Shift + n (n = 1, 2, 3, 4 ......)
Define bookmarks
Crtl + n (n = 1, 2, 3, 4 ......)
Jump to bookmarks n

Alt + the left mouse button can be used to select code blocks. It is very useful to delete duplicate code alignment.
CTRL + B buffer List window.
CTRL + I is the same as the tab key.
CTRL + m is the same as the Enter key.
CTRL + n is the same as the Enter key, but the cursor position remains unchanged.
CTRL + T delete a word on the right of the cursor.
CTRL + y Delete the row where the cursor is located.

CTRL + Shift + ← when the cursor is in the function body, move the cursor quickly to the current function declaration.
CTRL + Shift + ← when the cursor declares a function, move the cursor quickly to the function definition.
CTRL + Shift + C after declaring a process or function, directly generate the name, begin, and end of the process or function;
CTRL + Shift + e the cursor switches between the edit window and the Explorer window.
CTRL + Shift + j The Prompt window for Delphi statements is displayed. Selecting the required statement will automatically complete a statement.
CTRL + Shift + t add the to-do comment to the cursor line.
CTRL + Shift + y Delete the text between the cursor and the end of the row.

CTRL + F3 call Stack window.
CTRL + F4 equals to the close item in the File menu.

CTRL + mouse wheel to accelerate the scrolling.

The CPU window is displayed during Shift + F8 debugging.
Shift + F10 is equal to right-click (windows shortcut ).

Alt + F4 close the source program files opened in all edit boxes, but do not close the project.

CTRL + enter locate the cell File
Shitf + arrow Selection
If you hold down the Alt + shitf + arrow at the same time and then select, it is a type of area selection, rather than line selection, pasted
It is inserted and pasted.
Run F9
CTRL + F9 Compilation
F8 step over (step-by-step debugging does not enter the sub-process)
F7 trace into (step-by-step debugging simultaneously tracks sub-processes)
F11, F12 switch Editor, Inspector, Form Designer.
CTRL + ALT + F11 pop-up project manager
CTRL + F pop-up Search dialog box
CTRL + R pop-up replacement dialog box
CTRL + shitf + C Class Process Code Completion (as long as you define a process or a function header in part, it will automatically generate for you
Implement Partial overlay; otherwise, it is also achieved)
But in Delphi, how does one skip the grid? In fact, there is a way, that is, CTRL + K, I backward, CTRL + k, u forward.
Is it very complicated to input something repeatedly? CTRL + Shift + R record keyboard macros. For example, what I often do is:
The down arrow-home-press ENTER-Ctrl + V, and then type ctrl + Shift + R to finish recording. Then you can use
CTRL + Shift + P. Repeating macros saves some trouble.
In addition, there is a very useful fast key in deliphi that is extremely useful.
This is Ctrl + J; column. For example, when you enter IFB, press Ctrl + J to check the effect.
Surprised. This is code insight.

CTRL + Shift + u // block indent/reverse indent
CTRL + Shift + I

Unbookled: Shift + Ctrl + N again at bookmarks n

CTRL + E: the search is quite good, and the rest are all said to be playing.

Press ctrl and click the object, process, and function to go to its definition prototype, even the unit in Delphi VCL source code.

Alt + F4 disable Delphi [: d]

CTRL + K + O, CTRL + K + N convert all the selected code into lower case or upper case
CTRL + F search
CTRL + l continue searching

In inspector, you can use Ctrl + TAB to switch between the properties page and the Events page.
CTRL + enter to enter the corresponding settings, for example, In the preperties page font press Ctrl + enter
Press Ctrl + enter in events to edit the code.

CTRL + Shift + I: Push two cells at the same time
CTRL + Shift + u: Remove 2 cells at the same time [/Red] [/B]

Another trick is that I often use it.
Press and hold ALT to select text
Or press ALT and shift to select text
If you haven't tried it, try it now! [: D]

Put a tedit control on the form and write "edit1." in the Code. Wait a moment and a prompt will appear.
To use the prompt function before "edit1." is written, press the Windows key and then press the blank key.
(This function is only available for Windows keyboards !)

CTRL + space conflicts with the input method, and the keyboard shortcut for the input method is Ctrl + space.
I changed it to Ctrl + Shift + space.
Then in unit, for example, if you enter FO and press Ctrl + space, a series of variables and functions starting with Fo will appear.

Press Ctrl + backspace to delete a word. It seems to be.

In the object Inspector window, press the tab key to move the cursor to the attribute name area, and then type the beginning of the attribute name.
This attribute can be quickly located with letters.

------------------------------------------------------------------------

1. The following shortcut keys are used to operate components on a form table:
● Shortcut key 1:
[Ctrl + up ]~ Move the current component up (exact );
CTRL + left ]~ Move the current component to the left (exact );
[Ctrl + down ]~ Move the current component down (exact );
[Ctrl + right ]~ Move the current component to the right (exact );
Note:
You can add shift in the preceding shortcut keys (for example, CTRL + Shift + right) to make rough adjustments;
● Shortcut key 2:
[SHIFT + up ]~ Reduces the height of the current component;
[SHIFT + Left ]~ Decrease the width of the current component;
[SHIFT + down ]~ Increase the height of the current component;
[SHIFT + right ]~ Increase the width of the current component;
Note:
The above up, left, and so on refer to the direction keys;

2. The following shortcut keys refer to the operations on the object observer:
● Shortcut key 3:
[F11 ]~ Switch to the object observer (Note: If you press F11 consecutively, you can switch between the object observer, form table, and code editor );
[Ctrl + down ]~ Drop down the component list of the current form;
[Ctrl + enter ]~ Edit the property value with... (such as the font tfont of the component );
[Alt + down ]~ The drop-down list of the current attribute menu Queue (such as align-> alnone, alleft, And alright );
[Ctrl + TAB ]~ Switch between the attribute list and event list;

3. shortcut menu:
● Shortcut Key 4:
F12, Shift + F12, CTRL + F12, and so on.

TIPS:
How do I select a form that is overwritten by a component (for example, the align attribute of a component is alclient )?
Method 1: press the ESC key and select from the back layer until the form is selected as the current component;
Method 2: Shift and click the left mouse button to select one step (recommended );
Method 3: Press F11 to select the object observer, switch to the attribute list, and then press Ctrl + down in the shortcut key 3 above]

CTRL + up Move the selected component up (fine-tuned); Ctrl + left move the selected component to the left (fine-tuned );
CTRL + down move the selected component downward (fine-tuned); Ctrl + right move the selected component right (fine-tuned );
Shift + up reduces the height of the selected component; Shift + Left reduces the width of the selected component;
Shift + down increase the height of the selected component; Shift + right increase the width of the selected component;

CTRL + move the mouse to select other controls on the upper layer of a control without selecting its own!

Overview of shortcuts in Delphi (full official version)
1. Shift + left mouse click first select any control, and then select the middle form (select the control and Press ESC for the same effect)
2. the CPU window is displayed during Shift + F8 debugging.
3. Shift + F10 equals to right-click (windows shortcut ).
4. Select shitf + arrow
5. Shift + F12 quickly search for the form and open it
6. F7 (step-by-step debugging simultaneously tracks sub-processes)
7. F8 (step-by-step debugging does not enter the sub-process)
8. Run F9
9. F12 switch editor and form
10. Alt + F4 close the source program files opened in all edit boxes, but do not close the project
11. Alt + the left mouse button can be used to select code blocks. It is very useful to delete duplicate code alignment.
12. CTRL + F9 Compilation
13. CTRL + Shift + n (n = 1, 2, 3, 4 ......) define bookmarks
14. CTRL + n (n = 1, 2, 3, 4 ......) Jump to the bookmarks n
15. CTRL + Shift + N place at bookmark N, and then click Cancel again
16. CTRL + Pageup move the cursor to the first line of the screen without scrolling
17. CTRL + Pagedown move the cursor to the last line of the screen without scrolling
18. CTRL + ← scroll down the screen, and the cursor cannot scroll out of the screen
19. CTRL + ← scroll up the screen, and the cursor cannot scroll out of the screen
20. CTRL + home move the cursor to the file header
21. CTRL + end move the cursor to the end of the file
22. CTRL + B buffer List window
23. CTRL + I same as the tab key
24. CTRL + J (the prompt window for Delphi statements is displayed, and selecting a required statement will automatically complete a statement) Code Template
25. CTRL + m are the same as the Enter key.
26. CTRL + n is the same as the Enter key, but the cursor position remains unchanged.
27. CTRL + T delete a word on the right of the cursor
28. CTRL + y Delete the row where the cursor is located
29. CTRL + C copy
30. Press Ctrl + V to paste
31. CTRL + x cut
32. CTRL + z restore (UNDO)
33. CTRL + S save
34. CTRL + F search
35. CTRL + l continue searching
36. CTRL + R replace
37. CTRL + enter locate the cell File
38. CTRL + F3 pop-up call Stack window
39. CTRL + F4 equals to the close item in the File menu
40. Press Ctrl + backspace to delete a word until a separator is encountered.
41. CTRL + mouse wheel Acceleration
42. CTRL + O + u Switch the case sensitivity of the selected block (note that after the O is released, press u, and press Ctrl to keep it pressed)
43. Press Ctrl + K + O to switch the selected block to lower case (note that after the k is released, press O, and press Ctrl to keep it pressed)
44. Press Ctrl + K + n to switch the selected block to uppercase (note that after the k is released, press N, and press Ctrl to keep it pressed)
45. CTRL + Shift + G insert guid
46. CTRL + Shift + t add the to-do comment to the cursor line
47. CTRL + Shift + y delete text between the cursor and the end of the row
48. CTRL + Shift + C. It's great to write a statement or add a function !!!
49. CTRL + Shift + e show Explorer
50. CTRL + TAB switch the properties page and Events page in Inspector
51. CTRL + Shift + u move the entire code block left by two spaces
52. CTRL + Shift + I shift the entire block right by two spaces
53. CTRL + Shift + within processes, functions, and events, you can jump to corresponding processes, functions, and events.
Definition of parts (switch back and forth between interface and implementation)
54. In terms of process, function, and event definition, CTRL + Shift + cursor can jump to a specific process, function, or event (same as above)
55. In the object Inspector window, press the tab key to move the cursor to the attribute name area and enter the beginning of the attribute name.
This attribute can be quickly located with letters.
56. Press CTRL + ALT and press CTRL + ALT to select the code in a rectangle with the mouse,
And copy and paste it.
57. Shift + rotate, rotate, →, rotate change the size of the selected control in 1 pixel
58. CTRL + ←, ←, →, ← change the position of the selected control in 1 pixel
59. CTRL + e quick selection (haha, try it, it's fun)
--------- In gexperts ---------
60. CTRL + ALT + C comments
61. CTRL + ALT + u uncomment Block
62. CTRL + ALT + H generate the header (more detailed settings are on the editor experts attribute page of gexperts configuration)
63. CTRL + ALT + O select the statement between the corresponding Separators
64. CTRL + ALT + V jump back and forth between the corresponding separator (conflicts with existing shortcuts, please change)
--------- In gexperts ---------

CTRL + ALT + [left arrow] In gexpert, you can quickly select all the code methods between begin and its corresponding end.
Alt + F11 select a unit in the displayed window. the implementation section of the current Unit will automatically uses the unit you just selected.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.