Use the following Regex pattern to remove all comments from your code:
It will remove both full line comments and end-of-line comments.
Turn on Regular Expressions under "Find and Replace", then enter this pattern into the search box; leave the Replace field empty. Once you're done, hit the "Replace All" button.