• 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
XC3: text macros, autocompletion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XC3: text macros, autocompletion


  • Subject: XC3: text macros, autocompletion
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 2 Nov 2007 08:08:12 -0500

In Xcode 3, text macros now have the feature that, if you type a token word, and then escape, the resulting completion list includes the macro expansion assigned to that word in the macro specification file (*.xctxtmacro).

For example: In a C-family file, type ifelse. When you press escape, it offers you "ifelse - If / Else Block." Accepting it inserts a skeleton

if (<#condition#>) {
	<#statements#>
}
else {
	<#statements#>
}

## 1: How can I get my own macro set to take advantage of this feature?

I've figured out how to do text macros for Xcode 2, which didn't have macro completion. Simply providing CompletionPrefix for the particular macro has no effect.

## 2: Has it something to do with the IncludeContexts/ExcludeContexts keys I see in (inherited) macro definitions? The basic values for those context lists don't seem to be documented anywhere.

	— F

_______________________________________________
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


  • Follow-Ups:
    • Re: XC3: text macros, autocompletion
      • From: Kurt Stoll <email@hidden>
    • Re: XC3: text macros, autocompletion
      • From: David Ewing <email@hidden>
  • Prev by Date: Re: Xcode 3.0 frequent lockups
  • Next by Date: Re: Where's my NSLog output?
  • Previous by thread: Re: Line numbering in Text Editor ( Xcode 3.0)
  • Next by thread: Re: XC3: text macros, autocompletion
  • Index(es):
    • Date
    • Thread