Using the search and replace dialog in Visual Studio (2010), you can replace any text, but save the text of the replaced text.
T. I want to change "foo" to "bar", but in my code there are Foo, foo and FOO. I want the replacement to be Bar, bar, BAR, respectively.
Is it possible? I suspect that I need to use regular expression functionality, but I need help with this.
EDIT . I know that I can establish a match option, but all that does this is the restriction on replacing text that matches the case of a search query. This is how I do it at the moment, but it is tiring to have three replacements: foo, Foo, and FOO
editor visual-studio-2010 ide
Martin
source share