Every once in a while, my code gets littered with many useless comments, most of them are obsolete lines of code, and some are obsolete "memos to self".
So I was wondering if there's a way to just select a code section, and with some magic key combination or macro, delete all of those.
Thanks.
Delete commentsRight-click the comment, and choose Delete Comment. To delete all the comments in the document, go to the Review tab, click the down-arrow on Delete, and choose Delete All Comments in Document. Select the content you want to comment on.
Remove all spaces before the comments too.
(\t+|\s+|\r\n)((/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|(//.*))
http://blog.ostermiller.org/find-comment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With