Removing Custom Code Automatically
CodeSMART is able to automatically remove custom code blocks that were previously
inserted using the Insert custom code dialog. In order to remove these blocks
they must be delimited by special custom code markup lines. These markup
lines are automatically added by CodeSMART if the corresponding option was used
when the custom code will be inserted.
[THE_USER_DEFINED_CUSTOM_CODE...]
ID represents the numeric ID specified in the Insert custom code dialog box.
To remove previously inserted custom code:
-
Open the project you want to remove the custom code from, if it is not already
opened.
-
If applicable (depending on the operation scope), open the component you want
to remove custom code from and select the target procedure member.
-
Click the Remove custom code button on the Code Edit Tools toolbar
to display the Remove custom code dialog or select the menu entry with
the same name from the CodeSMART main menu. Also, you can press the SHIFT+F12
keyboard shortcut with the same effect (quick toolbar
and menu references are available).
-
Specify the removal scope.
Depending on the current position in code and the active code or
designer window, only valid options are listed.
-
Specify the numeric ID associated with the custom code whose removal
is desired.
-
Specify if you want to remove all the occurrences of the custom code which have
the same ID. If you uncheck this option CodeSMART will remove only the
first occurrence of a custom code with the specified ID.
-
Press Begin to start the operation.
Notes
-
All the code lines between the two markup lines will be permanently deleted.
To avoid accidental removing of your code it is indicated that you place the
code that you don't want to be removed outside the custom code blocks.
-
CodeSMART is not able to remove custom code if one or all of the markup lines
are missing.
See also
Back To Top
|