Multiline Search and Replace in Visual Studio

Using this is a little weird. It’s basically a plain text to regex translator. A box will open and you paste your lines of code. Then click “Find”. It will convert the text into one long regular expression and then you click “Find” again. It has Find, Find in Files, and Replace. Could be very useful for refactoring.

I was cleaning my older VB .NET project some time ago. I just wanted to “refactor” some code to look more readable. All I needed was several replaces of multiline text. VS 2002, 2003 nor 2005 is unable to perform multiline search/replace. So I wrote a macro that can do it.

Multiline Search and Replace in Visual Studio

Leave a Reply

You must be logged in to post a comment.