每个 Visual Studio Code Intellisense 图标的含义是什么?

17

当查看IntelliSense提供的选项时,所有图标代表什么? IntelliSense并不是我们看到这些图标的唯一地方,但我以它作为示例,希望有人能识别这些图标,并解释它们的含义。

Screenshot depicting a modal window of 3 different IntelliSense icons in Visual Studio Code

1个回答

29

Microsoft Docs IntelliSense页面上提供了图标及其名称和描述的列表。以下是完整列表:

Intellisens/suggestion icons and their meanings


Light
Icon
Dark
Icon
Name Description
Methods and Function icon; white background Methods and Function icon; transparent background Methods and Functions method, function, constructor
Variable icon; white background Variable icon; transparent background Variables variable
Field icon; white background Field icon; transparent background Fields field
Type Parameter icon; white background Type Parameter icon; transparent background Type parameters typeParameter
Constant icon; white background Constant icon; transparent background Constants constant
Class icon; white background Class icon; transparent background Classes class
Interface icon; white background Interface icon; transparent background Interfaces interface
Structure icon; white background Structure icon; transparent background Structures struct
Event icon; white background Event icon; transparent background Events event
Operator icon; white background Operator icon; transparent background Operators operator
Module icon; white background Module icon; transparent background Modules module
Properties and Attributes icon; white background Properties and Attributes icon; transparent background Properties and Attributes property
Values and Enumerations icon; white background Values and Enumerations icon; transparent background Values and Enumerations value, enum
Reference icon; white background Reference icon; transparent background References reference
Keyword icon; white background Keyword icon; black background Keywords keyword
File icon; white background File icon; transparent icon Files file
Folder icon; white background Folder icon; transparent background Folders folder
Color icon; white background Color icon; transparent background Colors color
Unit icon; white background Ruler icon; transparent background Unit unit
Snippet icon; white background Snippet icon; transparent background Snippet prefixes snippet
String icon; white background String icon; black background Words text

3
我和其他版主讨论了这个问题,我们还没有达成一致的意见。我回去后添加了一个单独的列来区分明暗模式。在明亮模式下,它看起来很好。在暗模式下,“暗”列是透明的,因此你可以在较暗的背景上看到深色图标。表格的好处是将简化维护此列表(某人添加了另一张图片,这就是我们开始讨论的原因)。虽然在暗模式下可能不是理想的选择,但明亮模式仍然是默认模式,而且并不清楚这张图片比表格更好。如果你仍然有异议,请随时联系我。 - Machavity
@Machavity 我会添加原始图像来修复问题。深色模式下的浅色图标非常模糊,而大多数深色模式下的深色图标则呈现为白色幽灵。这是我看到的 https://imgur.com/a/CHGSaNV。请注意这张图片已经放大了一点。你有更好的解决方法吗? - Mark
1
我没有看到更好的选择,但大多数人在白色背景下查看此内容(SO并没有宣传暗模式)。我当然不想让您感到不舒服(毕竟这是您的帖子),但我也不想仅因为一张图片就放弃一个有用的表格(在大多数情况下,我们认为图片比较无用)。如果您愿意,在表格旁边添加图片也可以。 - Machavity
进一步的修订(需要时间,因为它需要相当长的时间)将删除“Dark Icon”列,因为该列实际上并不必要(Stack Overflow的浅色模式可以很好地看到“Light Icon”列,因为图标和网站背景都是白色)。Makyen建议查找是否有任何实际的_VS Code dark mode_版本的图标,但由于我甚至不知道是否存在,所以我不确定它是否会出现在即将到来的修订版或另一个修订版中。 - TylerH
表格和图片在同一篇文章中完美结合。我喜欢新的表格,包含两列...我们拥有最好的世界。它已被标记为新的正确答案。 - Code Novice
注意:源SVG文件可以在GitHub上找到,网址为https://github.com/microsoft/vscode-icons(但颜色与建议UI中使用的颜色不同)。 - starball

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接