Search code examples
visual-studiovspackagevsip

How do I get access to existing icons from other components from a VS package?


I have a Visual Studio package, and I want to display the VS snippets icon - how can I get it?


Solution

  • I found that I needed to use IGlyphService passing in StandardGlyphGroup.GlyphCSharpExpansion and StandardGlyphItem.GlyphItemPublic. This gets me back the standard "scissors" icon for snippets.