icon image modification in visual studio

uiop 0 Reputation points
2023-03-17T21:46:01.92+00:00

In the visual studio, In the solution explorer, I should change the icon images for each file format. (the images that appear next to each file in the solution explorer For example, the inscription program.cs and a small picture next to it to the left. )

Does anyone know how to do this?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,371 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
    2023-03-20T06:52:33.5166667+00:00

    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.