ios Xcode 智能感知彩色框中字母的含义,如 f、T、C、M、P、C、K、# 等
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6662395/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode intellisense meaning of letters in colored boxes like f,T,C,M,P,C,K,# etc
提问by hiprakhar
Recently, I have started using Xcode 4 for developing iOS apps.
最近,我开始使用 Xcode 4 来开发 iOS 应用程序。
In Xcode intellisense's autocomplete box, there are some letters in colored boxes before every suggestion. I know that they represent the property of the word we are typinglike f,T,C,M,P,C,K,# etc.
在 Xcode 智能感知的自动完成框中,在每个建议之前的彩色框中都有一些字母。我知道它们代表我们正在输入的单词的属性,如 f、T、C、M、P、C、K、# 等。
Is there some kind of glossary available to find their quick meanings?
是否有某种词汇表可以快速找到它们的含义?
Meanings of f,C,T,# are understandable (function, class etc) but there are many others which I dont know. I assume these letters are standard across all IDEs like Visual Studio, Netbeans etc. Correct me if I am wrong.
f、C、T、# 的含义是可以理解的(函数、类等),但还有很多我不知道的其他含义。我认为这些字母在所有 IDE 中都是标准的,如 Visual Studio、Netbeans 等。如果我错了,请纠正我。
Please suggest.
请建议。
回答by kennytm
In Xcode this is called "Code Sense". And these icons also exist in Xcode 3. These icons are also used in symbol navigation.
在 Xcode 中,这称为“代码感知”。而这些图标也存在于 Xcode 3 中。这些图标也用于符号导航。
Red: macros
红色:宏
= macro (think
#define
)
= 宏(认为
#define
)
Brown: Core Data / namespace
棕色:核心数据/命名空间
= modeled class
= modeled method
= modeled property
= C++ namespace
=建模Ç小姑娘
=建模米ethod
=建模property
= C ++ Ñamespace
Orange: aliased types
橙色:别名类型
= Objective-C category
= enum
= typedef / typealias
= Swift extension
=目标C Çategory
= ÈNUM
= typedef / typealias
=夫特前张力
Green: variables
绿色:变量
= binding
= function
= field
= constant
= local variable
= IBOutlet
= variable (can be ivar, global var, local var, etc.)
= parameter (think f(x))
= binding
= ˚F结
= ˚Field
= Çonstant
=升OCAL可变
= IB Õutlet
= v良莠不齐(可以是伊娃,全局变量,局部变量等)
= 参数(想想f(x))
Blue: methods
蓝色:方法
= IBAction
= method
= property
= IB甲ction
=米ethod
= property
Purple: aggregate types
紫色:聚合类型
= class (Objective-C, Swift or C++)
= class extension
= Objective-C/Swift protocol
= struct
= union
= Ç小姑娘(目标C,夫特或C ++)
= c ^小姑娘Èxtension
=目标C /夫特PRotocol
=小号truct
= ü信联盟
Gray: snippets
灰色:片段
= snippets
= 片段
Icons: #pragma mark
or comments
图标:#pragma mark
或评论
=
!!!: ...
=
FIXME: ...
=
???: ...
=
TODO: ...
=
MARK: ...
=
!!!: ...
=
FIXME: ...
=
???: ...
=
TODO: ...
=
MARK: ...
You should be able to look up the meanings from the filenames from /Developer/Library/PrivateFrameworks/DVTFoundation.framework/Resources/Xcode.SourceCodeSymbolKind.*.Icon.tiff
*.
您应该能够从/Developer/Library/PrivateFrameworks/DVTFoundation.framework/Resources/Xcode.SourceCodeSymbolKind.*.Icon.tiff
*.
In later versions of Xcode, the path is moved to /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Resources/Assets.car
, see Analysing Assets.car file in IOSon how to extract the images from the *.car
在 Xcode 的后续版本中,路径移动到/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Resources/Assets.car
,请参阅IOS 中的 Analyzing Assets.car 文件,了解如何从 *.car 中提取图像