Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore comments in search VS2010 C#

Is there any way to have Find ignore any occurrences of the query that are in a commented line? It's making some find / replace operations very time consuming.

Thanks,

PM

like image 788
user472875 Avatar asked Jan 29 '26 13:01

user472875


1 Answers

I'm wondering if the root cause of your trouble is that you have a lot of commented out historical code. That is the #1 thing I've seen that produces excessive comment lines. If so, use a proper version control system to preserve it, and then delete the old commented out code. This is a best practice.

like image 166
Jason Kresowaty Avatar answered Jan 31 '26 06:01

Jason Kresowaty



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!