If I want to change the "Edit" context menu entries of certain file extensions to open them with certain programs, I typically just have to find the corresponding registry key, go to the "Shell/Edit/Command" subkey, and then change the default value to be something like this:
"C:\Program Files\Microsoft VS Code\Code.exe" "%1"
However, it seems that it's not always very easy to find those keys. It seems like there is "precedence" happening somewhere. For example, If I want a .ps1 script to have its "edit" context menu entry open with .vs code, I don't go here (the way I would for, say for example, a .hpp file):
Instead, I have to go here:
If I try the former, then nothing ends up happening; the latter seems to have precedence over the former.
Naturally, this can make it very difficult to find the right keys when trying to change the context menu entries of other file types that Windows typically deals with, such as ".ico" and ".vbs" extensions.
Do you know of any resources that can help me find the right registry key to go to for any given extension? I've been trying to find the right keys so that I can modify the "edit" context menu entry for ".ico" and ".vbs" extensions, but to no avail so far. Which keys are they?