Hi,
Thank you for writing to Microsoft Community Forums.
We appreciate your effort on this. We understand that you want to assign an extension a default custom icon.
Since you are using Sublime Text, and as Sublime Text is a third party application, I would suggest you to
refer the steps mentioned below and check if that helps in resolving the issue:
**Note:**Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs.
Follow the steps to take
backup of registry.
- Press
Windows key + R, to open Run dialog box.
- Type
regedit and click on OK.
- Now, navigate to the location:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts<.file extension>\Userchoice(Substitute .file extension with the file extension you want to change the icon for.
- Make a note of the value for
Progid, from the right pane.
- Now, navigate to
HKEY_CLASSES_ROOT<value of Progid>\DefaultIcon (Substitue value of Progid with the data value noted in Step 4)
- If you do not see
DefaultIcon key, you will have to create the key.
- On the right pane, double click on
Default and add the location of your custom icon.
- Restart the computer and check.
Let us know the results.
Regards,
Nikhar Khare
Microsoft Community - Moderator