Re: Text macro specifications submenu
Re: Text macro specifications submenu
- Subject: Re: Text macro specifications submenu
- From: Steve Mills <email@hidden>
- Date: Tue, 18 Jul 2006 10:46:32 -0500
On Jul 18, 2006, at 09:02, James Bucanek wrote:
Text macros are one of those user extensible, but largely
undocumented, features of Xcode.
It's also one of the topics that didn't make it into my book due to
space constraints. Which is good news for you: It's available as a
free bonus section that you can download here <http://www.wrox.com/
WileyCDA/WroxTitle/productCd-047175479X.html>. Follow the link to
the download code section, then get the bonus chapters disk image.
The file is "ch 19 - Custom Text Macros."
Looks like the override mechanism really doesn't work in Xcode. I
added my own .xctxtmacro file in ~/Library/Application Support/Apple/
Developer Tools/Specifications/ and copied the main C definition from
Xcode's C.xctxtmacro, changing only the PreExpressionsSpacing string
from " " to "". Your doc says that this should override Xcode's
definition, but using any of the other macros result in the space
still being there.
{
{
Identifier = c;
Name = "C";
IsMenu = YES;
DefaultSettings = {
PreExpressionsSpacing = ""; // space between keyword
and opening paren
InExpressionsSpacing = ""; // space between paren
and expression
CaseStatementSpacing = ""; // indentation of a case
statement
BlockSeparator = " "; // space between closing
paren and brace (can include a newline)
PostBlockSeparator = "\n"; // space after a brace
and before a new block (can include a newline)
};
ComputerLanguages = ( c );
},
}
Any ideas?
Of course, this still doesn't fix what I'm after when inserting Code
Sense definitions of functions.
Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
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