1
我在〜/ Library/Application Support/Developer/Shared/Xcode/Specifications中創建了一個「ObjectiveC.xctxtmacro」文件,代碼如下。我在Xcode的Edit> Insert Text Macros> Objective-C菜單項中看到「Hello」,但是當我嘗試使用control-dot調用它時,沒有任何反應。有任何想法嗎?Xcode中的自定義文本宏沒有被control-dot調用
(
{
Identifier = objc.hello;
BasedOn = objc;
IsMenuItem = YES;
Name = "Hello";
TextString = "Hello, Xcode!";
CompletionPrefix = "hello";
IncludeContexts = ("xcode.lang.objc");
}
)