You need to use App defaults in settings or control panel, find visual studio and then set it to use all defaults or selective mark those you want. I would go the latter route just to make sure you don’t mess up another app.
How to set application defaults in Windows 10
- Right click the start menu, select Settings
- In the settings home page, click on Apps
- In the Default Apps on the left
- At the bottom of the page, click on Set defaults by app
- Find Microsoft Visual Studio and click on it to reveal the Manage button which you should click on
- Set each association as appropriate.
Under Visual Studio 2015, I have all associations as Visual Studio, with the exception:
- .androidproj, .csproj, .jsproj, .lsxtproj, .vbjproj, .vcproj, .vcxitems, .vcxproj which uses Microsoft Visual Studio Verson Selector
- .js which uses Microsoft Windows Based Script Host
- GIT-CLIENT (URL:git-client) which uses Microsoft Visual Studio Web Protocol Handler Selector
- .bsc, .datasource, .dds, .exp, .fbx, .idb, .ilk, .lib, .ncb, .obj, .pal, .pch, .pdb, .props, .resw, .resx, .sbr, .settings, .snk, .user, .vsp, .vspf, .vsprops, .vsps, .vspscc, .vssettings, .vssscc, .vsz, .xsc, .xss which are not set
How to change default icon of file type
This requires you have administrative access.
- Run regedit.exe
- Under HKEY_CLASSES_ROOT locate the extension, eg, for .png use HKEY_CLASSES_ROOT\.png
- The default value will be the associated key that holds the file icon, eg, HKEY_CLASSES_ROOT\.png\(Default) has the value pngfile, then lookup HKEY_CLASSES_ROOT\pngfile\DefaultIcon\(Default)
Note that the value of the DefaultIcon default will be a path to a file, a comma and the icon index in the file. See MSDN's article, How to Assign a Custom Icon to a File Type for confirmation.
If you are afraid to do this manually, there are File Type Icon managers out there that would do this on your behalf but I can't personally recommend any as I don't use them. Online-Tech-Tips.com has a page enitled How to Change the File Type Icon in Windows 10 that suggests a few.
If anything, I would run a repair on Visual Studio so that it re-associates itself with the icons it should have.