A quick and dirty way to remove all of the comments in a code module is by pressing Ctrl+H to open the Replace dialog and
1. Enter '* (apostraphe asterisk) into the "Find:" field
2. Leave the "Replace With:" field blank (be sure that it's really empty).
3. Select "Current Module".
4. Check the "Use Pattern Matching" CheckBox
5. Press "Replace All"
WARNING: DO NOT DO THIS IF YOU HAVE USED APOSTRAPHES FOR ANYTHING ELSE IN YOUR CODE!!!!!
It might be a good idea to back-up your module before doing this!!!
You don't need to automate it (and I would recommend that you don't). If you want to have it run for all of the modules then select "Current Project" instead of "Current Module" but . . .
Glad I could help! Just remember to be careful though!
Seriously . . . If you use an apostraphe anywhere else in your code (like within a string) everything after that will also be deleted, and that could be catastophic!!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.