Unfortunately, now you will need to download the VSSDK and create a VSPackage to do this, now that the macros have been removed from the IDE.
The immediate macro task is now a PowerShell script , which you can run from the console, but I donβt know how to assign keyboard shortcuts.
Running PS outside of the IDE is an option (using the External Tool command with a customized keyboard shortcut), but getting EnvDTE outside the process can be difficult.
EDIT: There is a much simpler solution. I can not believe that I did not understand this for a start!
Just go to Tools ... Options ... Environment ... Keyboard, find File.OpenContainingFolder and assign a shortcut. This command will open the active document containing the folder.
source share