Using default VS Code icons on an extension

点点圈 提交于 2019-12-24 09:18:06

问题


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:


回答1:


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] Support to allow re-using VSCode icons in user extensions (#31466)

There's a nice overview of all built-in document symbol / suggest icons here. The .svg assets can be found here:

  • suggest
  • documentSymbols


来源:https://stackoverflow.com/questions/51256809/using-default-vs-code-icons-on-an-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!