MadBoy
MadBoy

Reputation: 11104

Search and Search &Replace in Visual Studio 2008 everywhere besides comments?

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?

Upvotes: 0

Views: 118

Answers (2)

Blanthor
Blanthor

Reputation: 2680

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.

Upvotes: 1

Peter Macej
Peter Macej

Reputation: 5577

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

Upvotes: 1

Related Questions