Xcode 4 调试器代码完成 [英] Xcode 4 debugger code completion

查看:32
本文介绍了Xcode 4 调试器代码完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,很高兴他们尝试在 Xcode 4 的 gdb 命令提示符下完成代码.但在当前状态下,使用命令提示符来调查目标 c 对象几乎是不可能的 - 当我键入时,它会自动将单词补全为我不想要的内容,如果不手动选择文本并将其删除,然后重新开始,就无法撤消此操作.

First off, it is nice that they are trying to get code completion on the gdb command prompt in Xcode 4. But in its current state, it makes using the command prompt to investigate objective c objects nearly impossible - when I'm typing, it autocompletes the word to something I didn't want, and there is no way to undo this without manually selecting the text and removing it, then starting over.

我可能应该为此向苹果提交一个错误,但与此同时,有没有人可以解决这个问题(比如,关闭调试器的自动完成而不关闭它用于代码编辑 - 我喜欢 obj-c 中的自动完成功能,因为方法名称太长了 :)

I should probably file a bug with apple for this, but in the meantime, does anyone have a work around for this (like say, turning off auto-completion for the debugger without turning it off for code editing - I like auto-completion in obj-c because method names are so long :).

推荐答案

我最接近解决这个令人难以置信的烦人问题的方法是关闭一般的自动代码完成(首选项 > 文本编辑 > 键入时建议完成)和然后在我确实想要代码完成时点击 esc.

The closest I've come to solving this incredibly annoying problem is to turn off automatic code completion in general (Preferences > Text Editing > Suggest Completions While Typing) and then hit esc whenever I actually do want code completion.

这篇关于Xcode 4 调试器代码完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆