驯服 XCode 的自动完成选项 [英] Taming XCode’s auto-complete options

查看:30
本文介绍了驯服 XCode 的自动完成选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 XCode 和 Objective-C 语言还很陌生.

I am fairly new to XCode and the Objective-C language.

当我实例化一个类时,例如 NSMutableArray,XCode 将提供大量自动完成选项.即使是简单地扩展 NSObject 的空类也有很多选项,其中大部分似乎完全没用.

When I am instantiating a class, for example an NSMutableArray, XCode will provide a whole lot of auto-complete options. Even for an empty class which simply extends an NSObject has many options, most of which seem completely useless.

有这么多自动完成选项的原因是什么,或者它们可以在首选项中驯服"?

What is the reason for having so many auto-complete options, or can they be "tamed" in the preferences?

这是无意中的重复.

推荐答案

自动完成使编码速度更快.例如,在 [[NSMutableString alloc] initWithCapacity:5],我只需要输入粗体的字符,即~10/38 = ~26%,这样可以节省很多打字时间.

The auto-complete makes coding way faster. For example, in [[NSMutableString alloc] initWithCapacity:5], I only had to type the characters that are in bold face, which is ~ 10/38 = ~26%, so it saves a lot of typing.

也就是说,它有时是不受欢迎的.您可以在 Xcode 首选项中的Code Sense"中进行调整(在 Xcode 打开并在前台时键入 COMMAND+COMMA).您可以设置建议的延迟,以及它是否应该记住您之前在该项目中使用过的功能.如果需要,您也可以完全禁用它.不过,我认为您无法限制它考虑的功能数量.

That said, it is sometimes unwelcome. You can adjust in "Code Sense" in the Xcode preferences (type COMMAND+COMMA while Xcode is open and in the foreground). You can set the delay for suggestions and also whether it should remember functions you've previously used in that project. You can also disable it completely, if you want to. I don't think you can limit the number of functions it considers, though.

这篇关于驯服 XCode 的自动完成选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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