Re: Multiline Search and Replace
Re: Multiline Search and Replace
- Subject: Re: Multiline Search and Replace
- From: Andy Lee <email@hidden>
- Date: Fri, 22 Jul 2005 10:07:01 -0400
On Jul 22, 2005, at 9:50 AM, Tommy Nordgren wrote:
Can XCode or some third party tool, do a
Multiline search and replace?
I want to replace the following:
#ifdef _cplusplus
#define BEGIN_DECLS extern "C" {
#define END_DECLS }
#else
with this :
#ifdef _cpluplus
#ifdef COMPILE_AS_CPLUSPLUS
#define BEGIN_DECLS
#define END_DECLS
#else
#define BEGIN_DECLS extern "C" {
#define END_DECLS }
#endif
#else
Xcode can do it, or any app that uses standard search and replace.
Select the lines you want to search for and hit Command-E (or select
"Use Selection For Find" in the Find menu). Much easier than trying
to type it into the search field. Let Cocoa do the work.
Type the replacement string (which can be multi-line) in your text
window and use copy-paste to put it into the "Replace:" field of the
Find panel.
--Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden