Quick Replace corrupts my code

I am using VS2005 IDE to port a V6 web application that consists of 122 individual classes representing approximately 200k lines of code. When I use the IDE's Quick Replace functionality to perform a 'global search and replace' across the whole project, the code in some of the classes is corrupted, and requires time-consuming manual coding to repair.

This has happened to me twice, but I've now learned my lesson. I now use an external text editor to perform my global search and replace commands.

Has anyone else experienced similar problems with the Quick Replace functionality Is there a fix for this bug



Answer this question

Quick Replace corrupts my code

  • Michael Bird

    I've had no problems using the find and quick replace functions of the ide...you just need to make sure the find options are set correctly...especially the "use" option.

  • Khurram01

    Just to second DMan1 here: I'm not aware of any reports on failures in that code. Usually when something like that happens to me, I realize that I've forgotten to check "Match whole word" in the find options or something like that, so I "undo," change the setting, and try again. (Better yet, nowadays I use "Rename Symbol" when making broad changes to code, which will ignore strings which aren't actually usages of the symbol.)

    If you're sure that your options are set correctly on the Quick Replace (note that you have to expand the "Find Options" to see them), and yet are still seeing this behavior, then I'd encourage you to file a bug at http://connect.microsoft.com/site/sitehome.aspx SiteID=210 -- the Visual Studio Editor devs would definitely want to look into this.

    --Matt--*



  • Quick Replace corrupts my code