Search code examples
visual-studio-codevscode-extensions

Using default VS Code icons on an extension


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:

enter image description here


Solution

  • 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: