• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Q] Xcode find/replace or insert Text macro
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] Xcode find/replace or insert Text macro


  • Subject: Re: [Q] Xcode find/replace or insert Text macro
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 4 May 2006 21:28:45 -0700

On May 4, 2006, at 8:36 PM, JongAm Park wrote:

When I write codes, I commented out code blocks often and revert them for debugging.


The most convenient way to do so was to use regular express after selecting some code blocks.


However the Xcode doesn't support ^, i.e caret, to select the first character, whether it is white space character or not. So, I search/replace using regular _expression_. ( According to the Xcode document, it uses ICU's regular _expression_. Doesn't it support the full set of the regular _expression_? )


So, another approach I tried is to see if there is "Insert Text Macro" for it. As you know, the Xcode can insert some text pattern. Although you can select some code blocks and comment them out in C style, but you can't do it in C++ style.

So, is there any ways to make text macros for the Xcode?


Yes, if you search Xcode documentation for the term "text macro" you'll find complete documentation:

http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/03_05_ed_code_completion/chapter_21_section_4.html

There are even prepackaged scripts for commenting out code using the User Scripts feature:

http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/07_03_custom_scripts/chapter_47_section_3.html

Look in Xcode's User Script menu (looks like a three-dimensional "S") under the Text sub-menu.

Chris
 _______________________________________________
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

References: 
 >[Q] Xcode find/replace or insert Text macro (From: JongAm Park <email@hidden>)

  • Prev by Date: [Q] Xcode find/replace or insert Text macro
  • Next by Date: Re: say, what happened to prefix files?
  • Previous by thread: [Q] Xcode find/replace or insert Text macro
  • Next by thread: Re: [Q] Xcode find/replace or insert Text macro
  • Index(es):
    • Date
    • Thread