Add an icon to the “Open With Sublime Text” Windows context menu

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.

Open 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:

Open with Sublime Text


  1. Excellent! Very good job, dude! 🙂


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.