For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > March 2005 > multi-line find and replace?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author multi-line find and replace?
engwar1@yahoo.com

2005-03-22, 3:58 am

Perhaps a silly question.

I'm new to vstudio.net and am wondering if it's possible to do a
multi-line find and replace.

I want to replace one line of code with two lines of code and the boxes
that are provided when I do a "find in files" only allow for one line.

Do I need to put a carriage return value in there of some sort?

Seems like an obvious feature.

Thanks.

Mythran

2005-03-22, 4:00 pm


<engwar1@yahoo.com> wrote in message
news:1111472635.794649.174870@z14g2000cwz.googlegroups.com...
> Perhaps a silly question.
>
> I'm new to vstudio.net and am wondering if it's possible to do a
> multi-line find and replace.
>
> I want to replace one line of code with two lines of code and the boxes
> that are provided when I do a "find in files" only allow for one line.
>
> Do I need to put a carriage return value in there of some sort?
>
> Seems like an obvious feature.
>
> Thanks.
>


Make sure the "Use Regular Expressions" is checked. Then you can use \n for
new lines in the textbox.

Mythran


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com