Shortcut keys have a very important impact on improving programming speed. This article summarizes the commonly used shortcut keys in Delphi for your reference:
Ctrl+PageUp moves the cursor to the first line of this screen without scrolling.
Ctrl+PageDown moves the cursor to the last line of the screen without scrolling.
Ctrl+↓ scrolls down the screen, and the cursor will not scroll out of the screen.
Ctrl+↑ scrolls the screen upwards, and the cursor follows and does not scroll out of the screen.
Ctrl+Shift+NUM sets up to nine temporary flag numbers on the cursor line, which is very useful for temporary switching.
A book will appear to the left of the row with NUM on the cover. Press it again to cancel the setting.
Ctrl+NUM jumps the cursor directly to NUM. NUM is the label set with Ctrl+Shift+NUM.
NUM cannot use the numpad.
Ctrl+Home moves the cursor to the file header.
Ctrl+End moves the cursor to the end of the file.
Ctrl+BBufferList 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 deletes a word to the right of the cursor.
Ctrl+Y deletes the line where the cursor is.
Ctrl+Shift+↑When the cursor is in the function body, quickly move the cursor to the current function declaration.
Ctrl+Shift+↓When the cursor is on the function declaration line, quickly move the cursor to the function definition.
After Ctrl+Shift+C declares a procedure or function, the name, begin, and end of the procedure or function are directly generated;
Ctrl+Shift+E The cursor switches between the Edit window and the Explorer window.
Ctrl+Shift+G inserts a GUID.
Ctrl+Shift+J pops up the Delphi statement prompt window. Select the required statement to automatically complete a statement.
Ctrl+Shift+T adds a To-Do comment to the cursor line.
Ctrl+Shift+Y deletes the text between the cursor and the end of the line.
Ctrl+F3CallStack window.
Ctrl+F4 is equal to the Close item in the File menu.
Ctrl+mouse wheel accelerates scrolling.
The CPU window pops up during Shift+F8 debugging.
Shift+F10 is equal to the right mouse button (Windows shortcut key).
Alt+F4 closes all source program files opened in the edit box, but does not close the project.
Set the Code Insight template, begin...end. In the future, just enter be and then press ctrl+j to match begin and end; but from begin to the corresponding end, I don’t know. You can use alt+[ to match brackets and the like. ,Alt+]
You may be able to find it by searching for editor keyboard shortcuts. Please read the help yourself.
Properties/Code Insight in unit right-click menu when programming
Just set whatever you like using ctr+j.
Some operation shortcuts in DELPHIIDE (most of them cannot be found in the menu of Delphi5.0, but some of them are still very useful)
1. Code template: CTRL+J
2. Move the entire code: CTRL+SHIFT+I (shift right) CTRL+SHIFT+U (shift left)
3. Select the form: First select any control, SHIFT+left mouse button
4. Point the mouse to the variable name, unit name, and class name, and then use CTRL+left mouse button to find the corresponding description.
5. Within a process, function, or event, SHIFT+CTRL+the upward arrow key can jump to the definition of the corresponding process, function, or event.
6. On the contrary, at the definition of a process, function, or event, SHIFT+CTRL+downward arrow key can jump to the specific process, function, or event.
7.CTRL+SHIFT+C: Write a statement or add a function
8.SHIFT+CTRL+E displays EXPLORER
9.Ctrl+shift+n(n=1,2,3,4...) Define bookmarks
10.Ctrl+n(n=1,2,3,4...) Jump to bookmark n
11. ALT + left mouse button can block code selection, which is very useful for deleting aligned duplicate codes.
12.Ctrl+PageUp moves the cursor to the first line of this screen without scrolling.
13.Ctrl+PageDown moves the cursor to the last line of this screen without scrolling the screen.
14.Ctrl+↓ scrolls down the screen, and the cursor will not scroll out of the screen.
15.Ctrl+↑ scrolls the screen upward, and the cursor will not scroll out of the screen.
16.Ctrl+Home moves the cursor to the file header.
17.Ctrl+End moves the cursor to the end of the file.
18.Ctrl+BBuffer List window.
19.Ctrl+I is the same as the Tab key.
20.Ctrl+M is the same as Enter key.
21.Ctrl+N is the same as the Enter key, but the cursor position remains unchanged.
22.Ctrl+T deletes a word to the right of the cursor.
23.Ctrl+Y deletes the line where the cursor is.
24.Ctrl+Shift+↑ When the cursor is in the function body, quickly move the cursor to the current function declaration.
25.Ctrl+Shift+↓ When the cursor is on the function declaration line, quickly move the cursor to the function definition.
26.Ctrl+Shift+C After declaring a procedure or function, directly generate the name, begin, and end of the procedure or function;
27.Ctrl+Shift+E The cursor switches between the Edit window and the Explorer window.
28.Ctrl+Shift+G insert GUID.
29.Ctrl+Shift+J A Delphi statement prompt window will pop up. Select the required statement to automatically complete a statement.
30.Ctrl+Shift+T adds a To-Do comment to the cursor line.
31.Ctrl+Shift+Y deletes the text between the cursor and the end of the line.
32.Ctrl+F3Call Stack window.
33.Ctrl+F4 is equal to the Close item in the File menu.
34.Ctrl+mouse wheel accelerates scrolling.
35.Shift+F8 pops up the CPU window during debugging.
36.Shift+F10 is equal to the right mouse button (Windows shortcut key).
37.Alt+F4 closes all source program files opened in the edit box, but does not close the project.
delphi7 shortcut keys
1. SHIFT + left mouse button to select any control first, then press the key to select the form (pressing Esc after selecting the control has the same effect)
2.Shift+F8 pops up the CPU window during debugging.
3.Shift+F10 is equal to the right mouse button (Windows shortcut key).
4.Shitf+arrow selection
5.shift+F12 to quickly find the form and open it
6.F7 (step-by-step debugging while tracking entry into sub-processes)
7.F8 (Step-by-step debugging does not enter the sub-process)
8.F9 run
9.F12 switches EDITOR,FORM
10.Alt+F4 closes all source program files opened in the edit box, but does not close the project
11. ALT + left mouse button can select blocks of code, which is very useful for deleting aligned duplicate codes.
12.Ctrl+F9 compile
13.Ctrl+shift+N(n=1,2,3,4...) Define bookmarks
14.Ctrl+n(n=1,2,3,4...) Jump to bookmark n
15.CTRL+SHIFT+N At bookmark N, press it again to cancel the bookmark
16.Ctrl+PageUp moves the cursor to the first line of this screen, and the screen does not scroll.
17.Ctrl+PageDown moves the cursor to the last line of this screen, and the screen does not scroll.
18.Ctrl+↓ scrolls down the screen, and the cursor will not scroll out of the screen.
19.Ctrl+↑ scrolls the screen upwards, and the cursor will not scroll out of the screen.
20.Ctrl+Home moves the cursor to the file header
21.Ctrl+End moves the cursor to the end of the file
22.Ctrl+B Buffer List window
23.Ctrl+I Same as Tab key
24.CTRL+J (The Delphi statement prompt window will pop up, select the required statement and a statement will be automatically completed) code template
25.Ctrl+M is 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 deletes a word to the right of the cursor
28.Ctrl+Y deletes the line where the cursor is located
29.CTRL+C copy
30.CTRL+V Paste
31.CTRL+X cut
32.CTRL+Z Undo
33.CTRL+S save
34.Ctrl+F Search
35.Ctrl+L to continue searching
36.Ctrl+r replace
37.CTRL+ENTER locates the unit file
38.Ctrl+F3 pops up the Call Stack window
39.Ctrl+F4 is equal to the Close item in the File menu
40.Ctrl+Backspace goes back and deletes a word until it encounters a separator
41.Ctrl+mouse wheel accelerates scrolling
42.Ctrl+O+U switches the case of the selected block (note that after releasing O, press U again, and keep Ctrl pressed)
43.Ctrl+K+O switches the selection block to lowercase (note that after releasing K, press O again, and keep Ctrl pressed)
44.Ctrl+K+N switches the selection block to uppercase (note that after releasing K, press N again, and keep Ctrl pressed)
45.Ctrl+Shift+G insert GUID
46.Ctrl+Shift+T Add To-Do comments to the cursor line
47.Ctrl+Shift+Y deletes the text between the cursor and the end of the line
48.CTRL+SHIFT+C to write declarations or add functions, great!!!
49.CTRL+SHIFT+E displays EXPLORER
50.Ctrl+Tab switches the Properties page and Events page in the Inspector
51.CTRL+SHIFT+U moves the entire code to the left by 2 spaces
52.CTRL+SHIFT+I moves the entire code block to the right by 2 spaces.
53.CTRL+SHIFT+↑ Within a process, function, or event, you can jump to the definition of the corresponding process, function, or event (switch back and forth between interface and implementation)
54.CTRL+SHIFT+↓ At the definition of a process, function, or event, you can jump to the specific process, function, or event (same as above)
55.Tab Press the tab key in the object inspector window to move the cursor to the attribute name area, and then type the first letter of the attribute name to quickly locate the attribute.
56.Ctrl+Alt After pressing Ctrl+Alt, you can use the mouse to select the code in a rectangular block and copy and paste it.
57.Shift+↓, ↑, →, ← changes the size of the selected control in 1 pixel units
58.Ctrl+↓, ↑, →, ← changes the position of the selected control in 1 pixel units
59.Ctrl+E quick selection (haha, try it, it’s fun)
--------- GExperts ---------
60.Ctrl+Alt+c comment block
61.Ctrl+Alt+u Uncomment block
62.Ctrl+Alt+h Generate header (more detailed settings are in the Editor Experts property page of GExperts configuration)
63.Ctrl+Alt+o selects statements between corresponding delimiters
64.Ctrl+Alt+v jumps back and forth between corresponding separators (conflicts with existing shortcut keys, please change)
-------------------------------------------------- --------------------------
65. Point the mouse to the variable name, unit name, and class name, and then use CTRL+left mouse button to find the corresponding description.
66. CTRL+SHIFT+C to write a statement or add a function.
like:
procedureTT.A(AA:string);//Function declaration
After installing: CTRL+SHIFT +C, it will write
procedureTT.A(AA:string);beginend;
67. ALT + left mouse button can block code selection, which is very useful for deleting aligned duplicate codes.
68. Ctrl+shift+G generates a GUID number