24
loading...
This website collects cookies to deliver better user experience
HKEY_CLASSES_ROOT\Directory\Background
shell
folder, create a new key and call it: "Open with Sublime Text 3" (or whatever you'd like to call it)Put the path for your computers version of Sublime Text 3. For me it is:
C:\Program Files\Sublime Text\sublime_text.exe .
Make sure to have a full stop at the end. The full stop as a flag tells windows to open this folder/directory in Sublime Text 3.
⚠️WARNING⚠️ Editing the Windows Registry incorrectly could do damage to your computer's operating system. So please take care from this point forward, and make a back up in case something goes wrong. Thankfully to make a back up is fairly easy.
HKEY_CLASSES_ROOT\*\shell\
"That's great John, but why should I bother editing something that is already installed by Sublime Text 3?"
HKEY_CLASSES_ROOT\Directory\Background
and it should take you right there.C:\Program Files\Sublime Text\sublime_text.exe
C:\Program Files\Sublime Text\sublime_text.exe
.
C:\Program Files\Sublime Text\sublime_text.exe .
Top
Bottom
This post came from my own desire to add Sublime Text 3 to the Windows context menu and open it in any folder I wanted. What I thought would be a simple thing turned out to be fairly difficult for me and a lot of DuckDuckGo later, I am here. This post is my documentation of the process so it's available for me in the future and I hope it is helpful to you. Dear reader. :D
To this fantastic stackoverflow question and discussion giving me a lot of help and guidance on how to add an icon to my new context menu item.
To this Techspot article going a bit more in depth with images and pointing myself the right direction to really flesh things out.
To this Livewire article. Going deep on what a registry key and how to edit them.
Context menu: A small box/menu that appears when you right click anywhere in a Windows operating system.
Windows Registry: The registry in windows is the place that store all of your windows computer software settings. stuff like: hardware devices, user preferences, and operating-system configurations. link to detailed explainion
HKEY_CLASSES_ROOT is the global "hive"/folder that holds the all the information that effects all users on that computer. Similar to a global variable/root directory that you can edit.
Environment variables are surrounded by the percent sign (%), as in %temp%, to distinguish them from regular text. You can reference user variables and system variables as we did in the "Opening the folder with custom file name/date:"