For convenient and efficient writingCodeThere are many quick operations in Delphi xe2 IDE, and some may be available in earlier versions.
1. syncedit: Compile the same identifier at the same time in code editor.
1 ). select a piece of code containing the same identifier; 2 ). click the mode icon on the left of syncedit. 3) modify the first identifier and change the other identifier. If multiple groups of identical identifiers exist, press the tab key to switch.
2. quickly comment out a piece of code
1) Select a piece of code, press Ctrl + '/' to comment out a piece of code, select the code that has been commented out, and press Ctrl + '/' to cancel the comment. If no code is selected, only the current row is commented.
3. Fold and unfold
1) Right-click the code editor and click the fold or unfold command.
4. FormatSource code
1. Select a piece of code, right-click the selection area, and click format source. If no code is selected, the entire file is formatted.
5. Quickly add and remove tags (bookmark)
1) Place the cursor on the row to be tagged, and press Ctrl + Shift + number key (Note: The number key must be the number key on the keyboard)
6. Code help prompt
1) when you move your cursor over the code, a prompt is displayed. You can also press Ctrl + Shift + H to implement this function.