Hello @uiop,
Welcome to Microsoft Q&A forum.
I’m afraid, there’s no option in visual studio to modify the icon image in Solution Explorer. They are set by default.
I recommend submitting a suggestion ticket on our Developer Community.
If you are working on a Visual Studio extension, and one of this extension’s feature is changing the icon images for each file format in VS Solution Explorer, then I suggest you refer to this similar extension: File Icons(mainly focus on the manifest
file and the pkgdef
file).
Update 1:
See this similar thread for details: Solution/File Icons in Visual Studio 2022.
Update 2:
File Icons extension adds icons for files that are not recognized by Solution Explorer, it doesn't support changing the default icons in Solution Explorer to custom icons.
You need to create your own extension to change the default icons in Solution Explorer.
Have a nice day.
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.