I've already posted a couple of threads (one and two) on this.
I have a custom editor for a file type hosted in Visual Studio. I want it to display with a custom icon in Solution Explorer.
I can create an item template for it (or just change the ProvideEditorExtension attribute ProjectGuid toone of these), but the custom icon (<VSTemplate><TemplateData><Icon> element in vstemplate file) only shows up in the Add New file dialog, not the Solution Explorer.
I know I could set the custom icon in a project system (or subtype/flavor), but I don't need a new project type. The tool I'm building targets an existing, widely used project type. I don't want users to have to create new projects using a different project type in the New Project dialog (and also migrate historical projects).
Even better, it would be nice to let the users add the custom editor to a variety of existing project types. I can create multiple instances of the ProvideEditorExtension attribute with different ProjectGuids (one for each of the targeted project types), but again the attribute only shows up in the Add New file dialog, not the file node in Solution Explorer.
The options suggested so far in the previous 2 threads I submitted will not work partly due to difficulty with deployment. I just need a simple VSIX deployment. TheVisual Studio Icon Patcher requires Visual to be closed down to be applied. Plus it replaces existing icons, not add new ones.
Creating a project system/subtype/flavor seems to be the only possible option as discussed in this thread. I went through this Walkthrough on project systems and successfully changed the icon of a file type in the Solution Explorer. I modified the steps to work for a custom file icon instead of project icon.
I also took a look at this project subtype sample which is only available for VS 2010. I don't know why this sample is not available in the 2013 SDK samples (assuming they didn't bother creating a new one - it won't work in 2013).
But again, apart from a project subtype/system having no VS 2013 samples, I don't want a new project type. All I need is my custom editor files to show up using a different icon in the solution explorer.
Seems like an obvious thing that anyone creating a custom editor would want to do.
There may not be a workable solution to this, but I thought I'd bump it one more time anyway. I might just have to live with the lame Notepad icon.