Forum Discussion
Simple request for Visual Studio's Find and Replace operation
This would be a very useful enhancement. While Visual Studio allows filtering by file patterns in some search scenarios, having a more intuitive include/exclude option when performing Find and Replace across an entire project or solution would help prevent unintended changes.
In Web Forms projects, designer files (*.designer.cs) are a perfect example of files that developers rarely want to modify during bulk replacements. Accidentally updating generated code can lead to unexpected issues and unnecessary cleanup work.
A feature allowing users to specify exclusions such as *.designer.cs, bin, obj, generated files, or other custom patterns before executing a solution-wide replace would make the operation much safer and more flexible.
Definitely a reasonable request, especially for larger legacy projects where generated files are common.