简体   繁体   English

我没有在最新的xcode(3.2.1)中获得文本宏补全

[英]I am not getting text macro completion in latest xcode (3.2.1)

I recently upgraded my machine from Leopard to Snow Leopard. 我最近将机器从Leopard升级到Snow Leopard。 Also I installed the latest Xcode 3.2.1 for Snow Leopard. 我还为Snow Leopard安装了最新的Xcode 3.2.1。

Currently I am not getting code completion for built-in macros. 目前,我还没有内置宏的代码完成。 For example 'if' followed by ESC gives completion list with #IF and ifstream. 例如,“ if”后跟ESC给出带有#IF和ifstream的完成列表。 However I can insert it from menu Edit>Insert Text macro>C>If Block. 但是我可以从菜单Edit> Insert Text macro> C> If Block插入它。

Any help? 有什么帮助吗?

Thanks in advance. 提前致谢。

Text macro completions are context-sensitive. 文本宏补全是上下文相关的。 Are you sure you're in a C file, and that an if block is valid at the point you're typing in? 您确定您在C文件中,并且if块在您输入的那一点有效吗? You should be seeing something like this, even without pressing Esc: alt text http://idisk.mac.com/cdespinosa/Public/If.png 即使不按Esc键,您也应该会看到类似的内容: 替代文本http://idisk.mac.com/cdespinosa/Public/If.png

Finally I found the solution for it. 最后,我找到了解决方案。 Deleting the "/Users/name/Library/Application Support/Developer/Shared" made it work perfectly. 删除“ /用户/名称/库/应用程序支持/开发人员/共享”可以使其正常工作。

Actually, while working with the previous versions of Xcode, I tried adding custom completion macros to "Shared/Xcode/Specifications". 实际上,在使用早期版本的Xcode时,我尝试将自定义完成宏添加到“ Shared / Xcode / Specifications”。 But the xcode 3.2.1 appeared to be messed with custom and default specification and failed to display the completions. 但是xcode 3.2.1似乎混乱了自定义和默认规范,并且无法显示完成内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM