The SMART Copy-and-Paste
Let's consider the following code piece:
In case we want to implement the same behavior for Text2 as for Text1 we should
copy the 2 lines implementation of Text1_GotFocus, paste it to the Text2_GotFocus routine
and manually change all the appearances of Text1 into Text2.
Well, in this simple case, we have only 3 replacements to make, but what if there would
have been more? To automate this task, CodeSMART has a special tool called the SMART
copy-and-paste buffer.
Practically, the SMART copy-and-paste buffer acts as a standard copy-and-paste buffer
with SMART bi-directional reserved words (standard parameters) replacement. When
some code is selected and the Ctrl+Shift+C keyboard combination is pressed, CodeSMART
analyzes the selected code, replaces all occurrences of the particular reserved word
with their general equivalent (the reverse-way replacement) and places the resulting
code into the SMART buffer. Latter on, when pressing Ctrl+Shift+V somewhere in
code, CodeSMART performs the SMART replacement (the direct-way replacement) and
pastes the resulting code at the cursor position.
To use the SMART copy-and-paste:
-
Select the code you want to copy and press the SMART Copy
button on the Code Edit Tools toolbar or press the Ctrl+Shift+C
keyboard combination.
-
Select the location where you want to paste the code and press
the SMART Paste button on the Code Edit Tools toolbar or press
the Ctrl+Shift+V keyboard combination.
See Also
Back To Top
|