在扩展上使用默认的 VS Code 图标 [英] Using default VS Code icons on an extension
问题描述
我正在制作一个 VS Code 扩展来概述 TypeScript 代码结构.我想知道如何在我的自定义树视图中使用 VS Code 在智能感知中使用的相同图标:
I am making a VS Code extension for outlining TypeScript code structure. I am wondering how can I use the same icons VS Code uses in intellisense in my custom tree view:
推荐答案
我认为没有任何方法可以引用内置图标,因此您必须在扩展中包含这些的副本.这是vscode-code-outline
扩展确实(以及许多其他).这里有一个相关的功能请求:
I don't think there's any way to reference built-in icons, so you would have to include copies of these in your extension. This is what the vscode-code-outline
extension does (along with many others). There's a relevant feature request here:
[icons] 支持允许在用户扩展中重复使用 VSCode 图标 (#31466)
所有内置文档符号/建议图标都有很好的概述这里..svg
资源可以在这里找到:
There's a nice overview of all built-in document symbol / suggest icons here. The .svg
assets can be found here:
这篇关于在扩展上使用默认的 VS Code 图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!