When you install Sublime Text on Windows, you are given an option to add an “Open with Sublime Text” shortcut to the right-click context menu. It allows you to right-click on any file and open it with Sublime Text.
The shortcut does not stand out from the menu that well, especially if you have a full context menu with lots of icons. While the shortcut does not include an icon by default, there is a way to add one.
To do this we need to get into the registry. Press the Win+R keys and type regedit
. Next, navigate to this key using the tree on the right:
HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text
Add a new string value with the name Icon
. Point the value to the Sublime Text executable file, in quotes. Mine is "C:\Program Files\Sublime Text 3\sublime_text.exe"
, but yours might differ depending on the version of Sublime Text and Windows you’re using. You can also set this to the path to a custom icon if you wish.
Exit out of the registry editor and the change should be instant:
Permalink
Awesome, thanks!
Permalink
Thank you!
Permalink
Fucking Awesome WOrk Mate… God Bless You ….
Permalink
Thanks man
Permalink
I found this on the internet.
This might be helpful for you: https://gist.github.com/mittalyashu/5c1525ba0c32333342096497a989c604
Permalink
Thanks, looks pretty similar to this article
Permalink
Excellent! Very good job, dude! 🙂