Hello,
This post is a follow-up to my post from 4/14/16.
https://social.msdn.microsoft.com/Forums/en-US/00956df2-2ef3-40e3-baa9-4c2ead100d96/binding-functions-to-keystrokes?forum=vsx&prof=required
All I'm trying to do is to bind functions to keystrokes within VS 2015.
My functions were once macros that utilize DTE.
It seems that I can get the DTE object that my old macro code depends upon:
DTE2 L_dte = (DTE2)Package.GetGlobalService(typeof(DTE));
My problem is binding keystrokes to the functions.
It seems that I can bind keystrokes that are open (that have not been
previously assigned by VS), but they must have menu buttons in order to
function.
IOW: For every function, it seems I must have a menu button within "Tools".
In total, there are over 30 functions. I do not want those menu buttons
to clutter up "Tools" when it isn't necessary.
It isn't a simple matter of removing the menu elements within the .vsct.
When I do that, none of the key bindings work.
There is probably a very simple way to do this, but I know next to nothing
about VS Packages, so I'm hoping that an expert can set me straight.
It would be most appreciated.
Wally