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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:42:34  来源:igfitidea点击:

Xcode intellisense meaning of letters in colored boxes like f,T,C,M,P,C,K,# etc

objective-ciosxcodexcode4intellisense

提问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. enter image description here

在 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

棕色:核心数据/命名空间

  • C= modeled class
  • M= modeled method
  • P= modeled property

  • N= C++ namespace

  • C=建模Ç小姑娘
  • 米=建模ethod
  • 磷=建模property

  • N= C ++ Ñamespace

Orange: aliased types

橙色:别名类型

  • C with underscore= Objective-C category
  • E= enum
  • T= typedef / typealias
  • Ex= Swift extension
  • C 带下划线=目标C Çategory
  • 乙= ÈNUM
  • 吨= typedef / typealias
  • 前任=夫特张力

Green: variables

绿色:变量

  • B= binding
  • f= function
  • F= field
  • K= constant
  • L= local variable
  • O= IBOutlet
  • V= variable (can be ivar, global var, local var, etc.)
  • x= parameter (think f(x))
  • 乙= binding
  • F= ˚F
  • F= ˚Field
  • 钾= Çonstant
  • 升=OCAL可变
  • 哦= IB Õutlet
  • 伏= v良莠不齐(可以是伊娃,全局变量,局部变量等)
  • X= 参数(想想f(x)

Blue: methods

蓝色:方法

  • A= IBAction
  • M= method
  • P= property
  • 一种= IBction
  • 米=ethod
  • 磷= property

Purple: aggregate types

紫色:聚合类型

  • C= class (Objective-C, Swift or C++)
  • CE= class extension
  • Pr= Objective-C/Swift protocol
  • S= struct
  • U= union
  • C= Ç小姑娘(目标C,夫特或C ++)
  • 行政长官= c ^小姑娘Èxtension
  • 压力=目标C /夫特PRotocol
  • 秒=小号truct
  • 你= ü信联盟

Gray: snippets

灰色:片段

  • {}= snippets
  • {}= 片段

Icons: #pragma markor comments

图标#pragma mark或评论

  • Flag= !!!: ...
  • Patch= FIXME: ...
  • ?= ???: ...
  • Items= TODO: ...
  • List= 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 中提取图像