Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

Did you know... How to do a replace all in files? - #081

You could say that all these find tips for the couple of weeks are building up to this tip... how to do a Replace in Files.

Replace In Files window

Just like Ctrl+H does a Quick Replace, Ctrl+Shift+H will bring up the Replace in Files window.  We've seen all these options over the past 2 weeks, but there's just one more now that has become enabled.

Keep modified files open after Replace All

Obviously, if you check this option, all modified files will be opened in the editor.  The significance of this is that you can do an undo, if you change your mind.

 

 

 

 

 

If you don't have this option checked, we'll prompt you "are you sure you don't want to do an undo?"

ReplaceAllCaution

After you commit the Replace all with the files opened, if you decide to do an undo, just simply press Ctrl+Z on one of the newly modified / opened files.  You'll notice that all open files will have the dirty bit * removed, reverting to their previous contents.

Technorati tags: ,
Posted: Monday, November 12, 2007 3:00 AM by saraford

Comments

Jason Haley said:

# November 12, 2007 10:13 AM

xjb said:

本篇包括tip80-tip91http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-9.html#81、如何在所有的文...

# December 16, 2008 8:44 PM

Секреты Visual Studio said:

Так же, как Ctrl+H выполняет операцию быстрой замены (Quick Replace), Ctrl+Shift+H откроет окно замены

# February 2, 2009 2:07 AM
New Comments to this post are disabled
Page view tracker