views:

41

answers:

2

Is there a way to search and eventually search and replace text in Visual Studio but to skip it (not show) if it's commented out (either with // or multi line comments).

Additionally is there a way to skip some file(s) when doing search && replace on whole solution?

+1  A: 

The MZ-Tools add-in allows you to do both - exclude comments and select/unselect files to be searched.

Peter Macej
Would it go hand in hand with Resharper?
MadBoy
+1  A: 

If the text is the name of an identifier, you may right-click on the identifier and select "/Refactor/Rename...", and then make sure "search in comments" is unchecked. This will quickly rename all usage of the identifer.

Blanthor