Since the problem in this question hasn't received any solutions, I; for documentation and readers' help, am going to present the way I currently do it. The ideal solution has to be one-click and do following
- remove all comments in one click
- restore all comments back in one click
So my less than ideal solution is as follows
Remove all comments
1. use following regexp in find tool to replace all multi-line comments with empty /\*(\*)?(((?!\*/)[\s\S])+)?\*/
2. then use following regexp to replace all single-line comments with empty //.*$
Restore all comments
1. Open VCS > Local History > Show History
and restore to the version with comments.
I'm still hoping to find a true one-click solution.
thanks