简体   繁体   English

Xcode autoCompletion

[英]Xcode autoCompletion

is there a way to see only the direct properties of an instance? 有没有办法只查看实例的直接属性?

it shows me every method and property that an instance has including all it's base classes. 它向我展示了一个实例具有的所有方法和属性,包括它的所有基类。 i wonder if i can set xcode to show me the direct properties first? 我想知道我是否可以设置xcode来首先向我展示直接属性?

for instance: an EKEvent instance. 例如:一个EKEvent实例。 i want to know what properties it has without using the cmd+click to go into it's h file. 我想知道它有什么属性,而不使用cmd +单击进入它的h文件。 it shows me a long list of inherited properties which are hard to navigate through. 它向我展示了一长串难以浏览的继承属性。

does anybody have an idea how to make it easier? 有人知道如何让它更容易吗?

一个xcode自动完成示例

If you go to the right (just before the scroll bar) a question mark should appear and you'd be able to click on it. 如果您向右(在滚动条之前)出现问号,您就可以点击它。 You can also do an Alt+click is the object is already written in your code. 您也可以执行Alt +单击,该对象已在您的代码中编写。

This is not possible with current version. 目前的版本无法做到这一点。 I hope Apple will implement it in future. 我希望Apple将来能够实现它。

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

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