Ignore comments in search for VS2010 C #

Is there any way to find Find to ignore any occurrences of the request that are in the comments? This makes some search / replace operations very time consuming.

Thank,

PM

+3
source share
4 answers

I am wondering if the cause of your problem is that you have a lot of comments from the history code. This is the first thing I saw that causes excessive comment lines. If so, use the correct version control system to save it, and then delete the old code with comments. This is the best practice.

+1
source

. Find/Replace , , , .

0

, , VS 2008, " " "", VS 2010. , , . , , , EOF ( - ). "", , .

0

If this is a refactoring operation, for example, rename, perhaps you can skip comments using refactoring tools.

0
source

Source: https://habr.com/ru/post/1773973/


All Articles