XC3: text macros, autocompletion
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