Sublime Forum

Hope to modify default icons of associated files

#1

The file with the .sublime-settings suffix has an icon different from Sublime Text, but when a general code file is associated to open with Sublime Text, the icon of the file is the icon of Sublime Text software.

image

I hope Sublime Text can learn from VS Code to draw a file icon that is different from the software icon for every file that is associated with Sublime Text to open.

Thanks!

0 Likes

#2

This can be achieved by following registry key. It tells Windows to use 2nd icon (index 1) instead of default application icon (index 0) for all associated file types.

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\sublime_text.exe\DefaultIcon]
@="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\",1"
2 Likes

#3

What you said is very helpful to me! Thank you very much for your solution.
:heart:

0 Likes